From 5212992f059cda11aab7d10ab8cb945d389959a5 Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Fri, 27 Mar 2020 18:02:37 +0900 Subject: [PATCH] feat: add is_std_forward_list std::forward_list does not have push_back, insert, or emplace but push_front, insert_after, and emplace_after. We need to distinguish it from other continers. --- toml/traits.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/toml/traits.hpp b/toml/traits.hpp index 2fd36a2..31037f4 100644 --- a/toml/traits.hpp +++ b/toml/traits.hpp @@ -7,6 +7,7 @@ #include #include #include +#include #if __cplusplus >= 201703L #if __has_include() #include @@ -157,6 +158,10 @@ template struct is_std_tuple : std::false_type{}; template struct is_std_tuple> : std::true_type{}; +template struct is_std_forward_list : std::false_type{}; +template +struct is_std_forward_list> : std::true_type{}; + template struct is_chrono_duration: std::false_type{}; template struct is_chrono_duration>: std::true_type{};