From c00eeb18efca9f68e197361824650b9b4ad241c3 Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Sun, 2 Jun 2019 19:02:01 +0900 Subject: [PATCH] feat: add meta function that detects toml::basic_value --- toml/traits.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/toml/traits.hpp b/toml/traits.hpp index a994d6d..e2036eb 100644 --- a/toml/traits.hpp +++ b/toml/traits.hpp @@ -166,6 +166,15 @@ template struct is_container : is_container{}; template struct is_container : is_container{}; template struct is_container : is_container{}; +template +struct is_basic_value: std::false_type{}; +template struct is_basic_value : is_basic_value{}; +template struct is_basic_value : is_basic_value{}; +template struct is_basic_value : is_basic_value{}; +template struct is_basic_value : is_basic_value{}; +template class M, template class V> +struct is_basic_value<::toml::basic_value>: std::true_type{}; + // --------------------------------------------------------------------------- // C++14 index_sequence