diff --git a/include/toml11/traits.hpp b/include/toml11/traits.hpp index 7a34fbb..49b7ff3 100644 --- a/include/toml11/traits.hpp +++ b/include/toml11/traits.hpp @@ -165,14 +165,14 @@ struct is_std_tuple_impl> : std::true_type{}; template using is_std_tuple = is_std_tuple_impl>; -#if TOML11_CPLUSPLUS_STANDARD_VERSION >= TOML11_CXX17_VALUE -# if __has_include() +#if defined(TOML11_HAS_OPTIONAL) template struct is_std_optional_impl : std::false_type{}; template struct is_std_optional_impl> : std::true_type{}; template using is_std_optional = is_std_optional_impl>; -# endif // +#else +template struct is_std_optional : std::false_type{}; #endif // > C++17 template struct is_std_array_impl : std::false_type{}; @@ -211,6 +211,11 @@ template struct is_string_view_of : std::false_type {}; template struct is_string_view_of, std::basic_string> : std::true_type {}; +#else +template +struct is_std_basic_string_view : std::false_type {}; +template +struct is_string_view_of : std::false_type {}; #endif template struct is_chrono_duration_impl: std::false_type{};