diff --git a/include/nlohmann/detail/conversions/from_json.hpp b/include/nlohmann/detail/conversions/from_json.hpp index 951f1a287..18c0775ec 100644 --- a/include/nlohmann/detail/conversions/from_json.hpp +++ b/include/nlohmann/detail/conversions/from_json.hpp @@ -788,8 +788,8 @@ void from_json(const BasicJsonType& j, std::unordered_map::string_t::value_type, char>::value, int > = 0 > +template::string_t::value_type, char>::value, int> = 0> inline void from_json(const BasicJsonType& j, std::basic_string& s) { if (j.is_string()) diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index 3a887e376..8910fb894 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -6931,8 +6931,8 @@ void from_json(const BasicJsonType& j, std::unordered_map::string_t::value_type, char>::value, int > = 0 > +template::string_t::value_type, char>::value, int> = 0> inline void from_json(const BasicJsonType& j, std::basic_string& s) { if (j.is_string())