mirror of
https://github.com/nlohmann/json.git
synced 2026-02-11 00:12:30 +00:00
Adapted unit tests to use ADL calls for swap like the new swappable concept
This commit is contained in:
@@ -878,7 +878,8 @@ TEST_CASE("modifiers")
|
||||
json j("hello world");
|
||||
json k(42.23);
|
||||
|
||||
std::swap(j, k);
|
||||
using std::swap;
|
||||
swap(j, k);
|
||||
|
||||
CHECK(j == json(42.23));
|
||||
CHECK(k == json("hello world"));
|
||||
|
||||
Reference in New Issue
Block a user