diff --git a/include/boost/core/type_name.hpp b/include/boost/core/type_name.hpp index e6cdc49..8a118ad 100644 --- a/include/boost/core/type_name.hpp +++ b/include/boost/core/type_name.hpp @@ -31,7 +31,6 @@ namespace boost { namespace core { - namespace detail { @@ -42,65 +41,6 @@ template struct tn_identity typedef T type; }; -// tn_enable_if - -template struct tn_enable_if -{ -}; - -template struct tn_enable_if -{ - typedef T type; -}; - -// tn_is_reference - -template struct tn_is_reference -{ - static const bool value = false; -}; - -template struct tn_is_reference -{ - static const bool value = true; -}; - -#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) - -template struct tn_is_reference -{ - static const bool value = true; -}; - -#endif - -// tn_remove_const - -template struct tn_remove_const -{ - typedef T type; -}; - -template struct tn_remove_const -{ - typedef T type; -}; - -// tn_is_function (also catches references but that's OK) - -#if defined(BOOST_MSVC) -# pragma warning(push) -# pragma warning(disable: 4180 4181) -#endif - -template::type> struct tn_is_function: core::is_same -{ -}; - -#if defined(BOOST_MSVC) -# pragma warning(pop) -#endif - #if !defined(BOOST_NO_TYPEID) // typeid_name @@ -299,8 +239,6 @@ template<> struct tn_holder // cv -#if 1 // !defined(BOOST_MSVC) || BOOST_MSVC >= 1900 - template struct tn_holder { static std::string type_name( std::string const& suffix ) @@ -325,35 +263,8 @@ template struct tn_holder } }; -#else - -template -typename tn_enable_if::value, std::string>::type -type_name( tn_identity, std::string const& suffix ) -{ - return detail::type_name( tn_identity(), " const" + suffix ); -} - -template -typename tn_enable_if::value, std::string>::type -type_name( tn_identity, std::string const& suffix ) -{ - return detail::type_name( tn_identity(), " volatile" + suffix ); -} - -template -typename tn_enable_if::value, std::string>::type -type_name( tn_identity, std::string const& suffix ) -{ - return detail::type_name( tn_identity(), " const volatile" + suffix ); -} - -#endif - // refs -#if 1 // !defined(BOOST_MSVC) || BOOST_MSVC >= 1900 - template struct tn_holder { static std::string type_name( std::string const& suffix ) @@ -362,17 +273,6 @@ template struct tn_holder } }; -#else - -template -typename tn_enable_if::value, std::string>::type -type_name( tn_identity, std::string const& suffix ) -{ - return detail::type_name( tn_identity(), "&" + suffix ); -} - -#endif - #if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) template struct tn_holder