diff --git a/include/nlohmann/json.hpp b/include/nlohmann/json.hpp index 2aef23b3..c85147b3 100644 --- a/include/nlohmann/json.hpp +++ b/include/nlohmann/json.hpp @@ -496,12 +496,8 @@ class basic_json using object_t = ObjectType> - >::value_type>>; + // Note: this forces object_t::value_type to match std::map's + AllocatorType>>; /*! @brief a type for an array diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index 3cf133d5..18cd4a38 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -16355,12 +16355,8 @@ class basic_json using object_t = ObjectType> - >::value_type>>; + // Note: this forces object_t::value_type to match std::map's + AllocatorType>>; /*! @brief a type for an array