introspection: add type_string_v

This commit is contained in:
Danny Robson 2016-03-16 19:27:22 +11:00
parent 9036a26743
commit 678462ba65

View File

@ -51,6 +51,10 @@ namespace util {
template <> struct type_string<char*> { static constexpr const char value[] = "string"; };
template <> struct type_string<char[]> { static constexpr const char value[] = "string"; };
template <typename T>
constexpr
const char* type_string_v = type_string<T>::value;
template <typename T>
auto
to_string (void)