mirror of
https://github.com/nlohmann/json.git
synced 2026-02-11 12:22:33 +00:00
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:
@@ -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