🏁 fix for #1168

This commit is contained in:
Niels Lohmann committed 2018-07-19 17:31:50 +02:00
1 parent 7bfc406ded
commit 04372a8c56
2 files changed
+8 -10

No files matched your search

+4 -5
View File
@@ -7637,11 +7637,10 @@ namespace std
@since version 1.0.0 @since version 1.0.0
*/ */
template<> template<>
inline void swap(nlohmann::json& j1, inline void swap<nlohmann::json>(nlohmann::json& j1, nlohmann::json& j2) noexcept(
nlohmann::json& j2) noexcept( is_nothrow_move_constructible<nlohmann::json>::value and
is_nothrow_move_constructible<nlohmann::json>::value and is_nothrow_move_assignable<nlohmann::json>::value
is_nothrow_move_assignable<nlohmann::json>::value )
)
{ {
j1.swap(j2); j1.swap(j2);
} }
+4 -5
View File
@@ -18472,11 +18472,10 @@ namespace std
@since version 1.0.0 @since version 1.0.0
*/ */
template<> template<>
inline void swap(nlohmann::json& j1, inline void swap<nlohmann::json>(nlohmann::json& j1, nlohmann::json& j2) noexcept(
nlohmann::json& j2) noexcept( is_nothrow_move_constructible<nlohmann::json>::value and
is_nothrow_move_constructible<nlohmann::json>::value and is_nothrow_move_assignable<nlohmann::json>::value
is_nothrow_move_assignable<nlohmann::json>::value )
)
{ {
j1.swap(j2); j1.swap(j2);
} }