diff --git a/include/toml11/value.hpp b/include/toml11/value.hpp index c1b2277..5d70671 100644 --- a/include/toml11/value.hpp +++ b/include/toml11/value.hpp @@ -951,8 +951,14 @@ class basic_value template using enable_if_array_like_t = cxx::enable_if_t, cxx::negation>, - detail::is_container + cxx::negation>, +#if defined(TOML11_HAS_STRING_VIEW) + cxx::negation>, +#endif + cxx::negation>, + cxx::negation> >::value, std::nullptr_t>; public: @@ -1046,7 +1052,9 @@ class basic_value template using enable_if_table_like_t = cxx::enable_if_t>, - detail::is_map + detail::is_map, + cxx::negation>, + cxx::negation> >::value, std::nullptr_t>; public: