We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46a925b commit 9454e68Copy full SHA for 9454e68
include/json/value.h
@@ -1082,6 +1082,14 @@ class JSON_API ValueIterator : public ValueIteratorBase {
1082
1083
} // namespace Json
1084
1085
+
1086
+namespace std {
1087
+/// Specialize std::swap() for Json::Value.
1088
+template<>
1089
+inline void swap(Json::Value& a, Json::Value& b) { a.swap(b); }
1090
+}
1091
1092
1093
#if defined(JSONCPP_DISABLE_DLL_INTERFACE_WARNING)
1094
#pragma warning(pop)
1095
#endif // if defined(JSONCPP_DISABLE_DLL_INTERFACE_WARNING)
0 commit comments