introspection: add type_string_v
This commit is contained in:
parent
9036a26743
commit
678462ba65
@ -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 <> 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>
|
template <typename T>
|
||||||
auto
|
auto
|
||||||
to_string (void)
|
to_string (void)
|
||||||
|
Loading…
Reference in New Issue
Block a user