From 0c7d2d07d4b16bcf751766ebac7ae9eb16875b20 Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Tue, 23 Apr 2019 23:23:57 +0900 Subject: [PATCH] feat: do not consider string_view as a container it is a kind of string. --- toml/types.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/toml/types.hpp b/toml/types.hpp index db93320..b879176 100644 --- a/toml/types.hpp +++ b/toml/types.hpp @@ -7,6 +7,11 @@ #include "traits.hpp" #include #include +#if __cplusplus >= 201703L +#if __has_include() +#include +#endif +#endif namespace toml { @@ -172,6 +177,9 @@ template struct is_container : conjunction< negation>, negation>, +#if __cplusplus >= 201703L + negation>, +#endif has_iterator, has_value_type >{};