$OpenBSD: patch-src_lib_json_json_value_cpp,v 1.2 2018/02/11 09:05:59 rsadowski Exp $

XXX Revert commit 23c44d9f9eed8a7ff95daca9bd44526067c144c0 to avoid
undefined references when linking cmake.

commit 23c44d9f9eed8a7ff95daca9bd44526067c144c0
Author: Dhruv Paranjape <lord.dhruv@gmail.com>
Date:   Sat Jul 8 12:00:47 2017

overload append function for R value references.

Index: src/lib_json/json_value.cpp
--- src/lib_json/json_value.cpp.orig
+++ src/lib_json/json_value.cpp
@@ -485,14 +485,6 @@ Value::Value(Value const& other)
   }
 }
 
-#if JSON_HAS_RVALUE_REFERENCES
-// Move constructor
-Value::Value(Value&& other) {
-  initBasic(nullValue);
-  swap(other);
-}
-#endif
-
 Value::~Value() {
   switch (type_) {
   case nullValue:
@@ -1146,10 +1138,6 @@ Value const& Value::operator[](CppTL::ConstString cons
 #endif
 
 Value& Value::append(const Value& value) { return (*this)[size()] = value; }
-
-#if JSON_HAS_RVALUE_REFERENCES
-  Value& Value::append(Value&& value) { return (*this)[size()] = std::move(value); }
-#endif
 
 Value Value::get(char const* key, char const* cend, Value const& defaultValue) const
 {
