diff --git a/misc/traits.h b/misc/traits.h index f93b557..edf600f 100644 --- a/misc/traits.h +++ b/misc/traits.h @@ -97,8 +97,11 @@ template struct IsCString : Bool::type>::value || std::is_same::type>::value> { }; -/// \brief Evaluates to Bool if the specified type is a C-string (char * or const char *); otherwise evaluates to Bool. -template struct IsString : Bool::value || IsSpecializationOf::value> { +/// \brief Evaluates to Bool if the specified type is a standard string, standard string view or C-string (char * or const char *); otherwise +/// evaluates to Bool. +template +struct IsString + : Bool::value || IsSpecializationOf::value || IsSpecializationOf::value> { }; /// \brief Evaluates to Bool if the specified type is complete; if the type is only forward-declared it evaluates to Bool.