mirror of
https://github.com/nlohmann/json.git
synced 2026-02-23 11:56:24 +00:00
@@ -39,6 +39,7 @@ using nlohmann::json;
|
||||
|
||||
#include <list>
|
||||
#include <cstdio>
|
||||
#include <type_traits>
|
||||
#include <utility>
|
||||
|
||||
#if (defined(__cplusplus) && __cplusplus >= 201703L) || (defined(_HAS_CXX17) && _HAS_CXX17 == 1) // fix for issue #464
|
||||
@@ -620,4 +621,9 @@ TEST_CASE("regression tests 2")
|
||||
nlohmann::to_json(o["foo"], s);
|
||||
}
|
||||
}
|
||||
|
||||
SECTION("issue #2825 - Properly constrain the basic_json conversion operator")
|
||||
{
|
||||
static_assert(std::is_copy_assignable<nlohmann::ordered_json>::value, "");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user