mirror of
https://github.com/nlohmann/json.git
synced 2025-07-28 12:02:00 +03:00
🏁 fix for #1168
This commit is contained in:
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user