1
0
mirror of https://github.com/nlohmann/json synced 2024-11-08 21:50:07 +00:00

fix for 3732

This commit is contained in:
luistung 2022-09-16 03:09:42 +08:00
parent 58bd97e2b1
commit c67e101b77
3 changed files with 14 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

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