Adapted unit tests to use ADL calls for swap like the new swappable concept

This commit is contained in:
Guillaume Racicot
2020-06-06 12:28:52 -04:00
parent 225c8f150a
commit 82fbbeeac5
2 changed files with 4 additions and 3 deletions

View File

@@ -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"));