diff --git a/include/nlohmann/json.hpp b/include/nlohmann/json.hpp index 69afaf053..31944e32d 100644 --- a/include/nlohmann/json.hpp +++ b/include/nlohmann/json.hpp @@ -496,9 +496,12 @@ class basic_json using object_t = ObjectType - >::value_type>>; + // Note the use of std::map default allocator as a placeholder + // to extract the actual ObjectType::value_type + AllocatorType> + >::value_type>>; /*! @brief a type for an array diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index e6d87b31e..76ee27643 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -16348,9 +16348,12 @@ class basic_json using object_t = ObjectType - >::value_type>>; + // Note the use of std::map default allocator as a placeholder + // to extract the actual ObjectType::value_type + AllocatorType> + >::value_type>>; /*! @brief a type for an array