From 0759e757ae47a31e6b8adc21d79ad4f750f26350 Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Mon, 10 Dec 2018 22:01:18 +0900 Subject: [PATCH] move is_chrono_duration from types to traits --- toml/traits.hpp | 5 +++++ toml/types.hpp | 3 --- 2 files changed, 5 insertions(+), 3 deletions(-) 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()