reflecting typename for arbitrary vectors
This commit is contained in:
parent
773844668d
commit
9c0f222e06
1 changed files with 7 additions and 0 deletions
|
|
@ -24,6 +24,13 @@ namespace fc {
|
||||||
template<> struct get_typename<value> { static const char* name() { return "value"; } };
|
template<> struct get_typename<value> { static const char* name() { return "value"; } };
|
||||||
template<> struct get_typename<fc::exception> { static const char* name() { return "fc::exception"; } };
|
template<> struct get_typename<fc::exception> { static const char* name() { return "fc::exception"; } };
|
||||||
template<> struct get_typename<std::vector<char>> { static const char* name() { return "std::vector<char>"; } };
|
template<> struct get_typename<std::vector<char>> { static const char* name() { return "std::vector<char>"; } };
|
||||||
|
template<typename T> struct get_typename<std::vector<T>>
|
||||||
|
{
|
||||||
|
static const char* name() {
|
||||||
|
static std::string n = std::string("std::vector<") + get_typename<T>::name() + ">";
|
||||||
|
return n.c_str();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
struct signed_int;
|
struct signed_int;
|
||||||
struct unsigned_int;
|
struct unsigned_int;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue