Add util::type_name(x) (may use rrti)
This commit is contained in:
parent
6aebd8c931
commit
df963e18a3
1 changed files with 6 additions and 0 deletions
|
|
@ -15,4 +15,10 @@ namespace psemek::util
|
|||
return result;
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
std::string type_name(T const & x)
|
||||
{
|
||||
return type_name(typeid(x));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue