-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7637,11 +7637,10 @@ namespace std | |
@since version 1.0.0 | ||
*/ | ||
template<> | ||
inline void swap(nlohmann::json& j1, | ||
nlohmann::json& j2) noexcept( | ||
is_nothrow_move_constructible<nlohmann::json>::value and | ||
is_nothrow_move_assignable<nlohmann::json>::value | ||
) | ||
inline void swap<nlohmann::json>(nlohmann::json& j1, nlohmann::json& j2) noexcept( | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
theodelrieu
Contributor
|
||
is_nothrow_move_constructible<nlohmann::json>::value and | ||
is_nothrow_move_assignable<nlohmann::json>::value | ||
) | ||
{ | ||
j1.swap(j2); | ||
} | ||
|
I think it would be better to make it a partial specialization, to handle
basic_json<...>