mirror of
https://github.com/boostorg/core.git
synced 2025-07-29 12:27:42 +02:00
Add void, move nullptr_t to fundamental type section
This commit is contained in:
@ -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> > >
|
||||
|
Reference in New Issue
Block a user