Merge pull request #2176 from gracicot/cpp20-support-no-std-fct-templ-specialization

C++20 support by removing swap specialization
This commit is contained in:
Niels Lohmann
2020-06-21 20:39:58 +02:00
committed by GitHub
5 changed files with 80 additions and 5 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"));