diff --git a/json11.hpp b/json11.hpp index 779445e..fe9bba4 100644 --- a/json11.hpp +++ b/json11.hpp @@ -91,14 +91,14 @@ public: // Implicit constructor: map-like objects (std::map, std::unordered_map, etc) template ().begin()->first)>::value - && std::is_constructible().begin()->second)>::value, + std::is_constructible::value + && std::is_constructible::value, int>::type = 0> Json(const M & m) : Json(object(m.begin(), m.end())) {} // Implicit constructor: vector-like objects (std::list, std::vector, std::set, etc) template ().begin())>::value, + std::is_constructible::value, int>::type = 0> Json(const V & v) : Json(array(v.begin(), v.end())) {}