diff --git a/toml/traits.hpp b/toml/traits.hpp index 7f8f413..7f5654b 100644 --- a/toml/traits.hpp +++ b/toml/traits.hpp @@ -169,6 +169,21 @@ using return_type_of_t = typename std::result_of::type; #endif +// --------------------------------------------------------------------------- +// is_string_literal +// +// to use this, pass `typename remove_reference::type` to T. + +template +struct is_string_literal: +disjunction< + std::is_same, + conjunction< + std::is_array, + std::is_same::type> + > + >{}; + }// detail }//toml #endif // TOML_TRAITS