mirror of
https://github.com/nlohmann/json
synced 2024-11-08 21:50:07 +00:00
fix for 3732
This commit is contained in:
parent
58bd97e2b1
commit
c67e101b77
@ -5123,6 +5123,10 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
|
||||
/// @}
|
||||
};
|
||||
|
||||
// Explicit instantiation
|
||||
// fix for issue #3732
|
||||
template class nlohmann::basic_json<nlohmann::ordered_map>;
|
||||
|
||||
/// @brief user-defined to_string function for JSON values
|
||||
/// @sa https://json.nlohmann.me/api/basic_json/to_string/
|
||||
NLOHMANN_BASIC_JSON_TPL_DECLARATION
|
||||
|
@ -24339,6 +24339,10 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
|
||||
/// @}
|
||||
};
|
||||
|
||||
// Explicit instantiation
|
||||
// fix for issue #3732
|
||||
template class nlohmann::basic_json<nlohmann::ordered_map>;
|
||||
|
||||
/// @brief user-defined to_string function for JSON values
|
||||
/// @sa https://json.nlohmann.me/api/basic_json/to_string/
|
||||
NLOHMANN_BASIC_JSON_TPL_DECLARATION
|
||||
|
@ -12,6 +12,12 @@
|
||||
using nlohmann::json;
|
||||
using nlohmann::ordered_json;
|
||||
|
||||
//fix for issue #3732
|
||||
void test(nlohmann::detail::iteration_proxy_value <
|
||||
nlohmann::detail::iter_impl<nlohmann::ordered_json >> const& val)
|
||||
{
|
||||
static_cast<void>(val.value());
|
||||
}
|
||||
|
||||
TEST_CASE("ordered_json")
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user