From d9449747f38f580e7fc9236fa612b1e62f85099a Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Wed, 17 Jul 2024 01:03:47 +0900 Subject: [PATCH] fix: add constraint to array-like/table-like --- include/toml11/value.hpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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: