Add tests for all fundamental types

This commit is contained in:
Peter Dimov
2021-10-05 07:50:52 +03:00
parent cd1a8fd238
commit 4f6f7c3799
2 changed files with 56 additions and 5 deletions

View File

@@ -267,6 +267,27 @@ template<class T> std::string type_name( tn_identity<T>, std::string const& suff
return typeid_name<T>() + suffix;
}
// integrals
inline std::string type_name( tn_identity<unsigned>, std::string const& suffix )
{
return "unsigned" + suffix;
}
#if defined(_MSC_VER)
inline std::string type_name( tn_identity<long long>, std::string const& suffix )
{
return "long long" + suffix;
}
inline std::string type_name( tn_identity<unsigned long long>, std::string const& suffix )
{
return "unsigned long long" + suffix;
}
#endif
// cv
#if !defined(BOOST_MSVC) || BOOST_MSVC >= 1900