diff --git a/toml/traits.hpp b/toml/traits.hpp index 6a347e8..aec49b0 100644 --- a/toml/traits.hpp +++ b/toml/traits.hpp @@ -2,6 +2,7 @@ #define TOML11_TRAITS #include #include +#include #include namespace toml @@ -85,6 +86,10 @@ template struct is_std_tuple : std::false_type{}; template struct is_std_tuple> : std::true_type{}; +template struct is_chrono_duration: std::false_type{}; +template +struct is_chrono_duration>: std::true_type{}; + // to use toml::get> in C++11 template struct index_sequence{}; diff --git a/toml/types.hpp b/toml/types.hpp index fb16075..0e9637d 100644 --- a/toml/types.hpp +++ b/toml/types.hpp @@ -82,9 +82,6 @@ inline std::basic_string stringize(value_t t) namespace detail { -template struct is_chrono_duration: std::false_type{}; -template -struct is_chrono_duration>: std::true_type{}; template constexpr inline value_t check_type()