Merge pull request #117 from nathanhourt/typename-reflect

Add missing typename reflection for flat_map
This commit is contained in:
Nathan Hourt 2019-03-30 09:47:05 -05:00 committed by GitHub
commit af572ba7d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,6 +48,13 @@ namespace fc {
return n.c_str();
}
};
template<typename T, typename U> struct get_typename<flat_map<T, U>>
{
static const char* name() {
static std::string n = std::string("flat_map<") + get_typename<T>::name() + ", " + get_typename<U>::name() + ">";
return n.c_str();
}
};
template<typename T> struct get_typename< std::deque<T> >
{
static const char* name()