diff --git a/include/json/value.h b/include/json/value.h index 8d049ad..2643782 100644 --- a/include/json/value.h +++ b/include/json/value.h @@ -880,15 +880,10 @@ public: pointer operator->() const { return &deref(); } }; +inline void swap(Value& a, Value& b) { a.swap(b); } + } // namespace Json - -namespace std { -/// Specialize std::swap() for Json::Value. -template<> -inline void swap(Json::Value& a, Json::Value& b) { a.swap(b); } -} - #pragma pack(pop) #if defined(JSONCPP_DISABLE_DLL_INTERFACE_WARNING)