Add void, move nullptr_t to fundamental type section

This commit is contained in:
Peter Dimov
2021-10-27 03:46:06 +03:00
parent e9718374ac
commit fda0f87576

View File

@ -387,6 +387,30 @@ template<> struct tn_holder<long double>
}
};
// void
template<> struct tn_holder<void>
{
static std::string type_name( std::string const& suffix )
{
return "void" + suffix;
}
};
// nullptr_t
#if !defined(BOOST_NO_CXX11_NULLPTR)
template<> struct tn_holder<std::nullptr_t>
{
static std::string type_name( std::string const& suffix )
{
return "std::nullptr_t" + suffix;
}
};
#endif
// cv
template<class T> struct tn_holder<T const>
@ -854,20 +878,6 @@ template<class R, class T, class... A> struct tn_holder<R(T::*)(A...) const vola
#endif
// nullptr_t
#if !defined(BOOST_NO_CXX11_NULLPTR)
template<> struct tn_holder<std::nullptr_t>
{
static std::string type_name( std::string const& suffix )
{
return "std::nullptr_t" + suffix;
}
};
#endif
// strings
template<template<class Ch, class Tr, class A> class L, class Ch> struct tn_holder< L<Ch, std::char_traits<Ch>, std::allocator<Ch> > >