diff --git a/include/boost/core/type_name.hpp b/include/boost/core/type_name.hpp index 853ca33..19ae1b5 100644 --- a/include/boost/core/type_name.hpp +++ b/include/boost/core/type_name.hpp @@ -387,6 +387,30 @@ template<> struct tn_holder } }; +// void + +template<> struct tn_holder +{ + static std::string type_name( std::string const& suffix ) + { + return "void" + suffix; + } +}; + +// nullptr_t + +#if !defined(BOOST_NO_CXX11_NULLPTR) + +template<> struct tn_holder +{ + static std::string type_name( std::string const& suffix ) + { + return "std::nullptr_t" + suffix; + } +}; + +#endif + // cv template struct tn_holder @@ -854,20 +878,6 @@ template struct tn_holder struct tn_holder -{ - static std::string type_name( std::string const& suffix ) - { - return "std::nullptr_t" + suffix; - } -}; - -#endif - // strings template class L, class Ch> struct tn_holder< L, std::allocator > >