Specialize std::swap() for Json::Value in a C++ standard compliant way
originally from pull #119
diff --git a/include/json/value.h b/include/json/value.h
index 93112d1..78e7546 100644
--- a/include/json/value.h
+++ b/include/json/value.h
@@ -1082,6 +1082,14 @@
} // namespace Json
+
+namespace std {
+/// Specialize std::swap() for Json::Value.
+template<>
+inline void swap(Json::Value& a, Json::Value& b) { a.swap(b); }
+}
+
+
#if defined(JSONCPP_DISABLE_DLL_INTERFACE_WARNING)
#pragma warning(pop)
#endif // if defined(JSONCPP_DISABLE_DLL_INTERFACE_WARNING)