diff --git a/include/boost/core/pointer_traits.hpp b/include/boost/core/pointer_traits.hpp index d4d264b..028b553 100644 --- a/include/boost/core/pointer_traits.hpp +++ b/include/boost/core/pointer_traits.hpp @@ -25,10 +25,10 @@ struct pointer_traits; namespace detail { template -static typename pointer_traits::element_type* +static typename boost::pointer_traits::element_type* ptr_traits_address(U v) BOOST_NOEXCEPT { - return pointer_traits::to_address(v); + return boost::pointer_traits::to_address(v); } } /* detail */ @@ -62,7 +62,7 @@ struct pointer_traits #else namespace detail { -struct ptr_traits_none { char first; char second; }; +struct ptr_traits_none { char first, second; }; template struct ptr_traits_has_element { @@ -101,10 +101,7 @@ struct ptr_traits_first > { #endif template::value> -struct ptr_traits_element; - -template -struct ptr_traits_element { +struct ptr_traits_element { typedef typename T::element_type type; }; @@ -125,10 +122,7 @@ public: }; template::value> -struct ptr_traits_difference; - -template -struct ptr_traits_difference { +struct ptr_traits_difference { typedef typename T::difference_type type; }; @@ -176,10 +170,7 @@ struct ptr_traits_rebind_to, V> { #if !defined(BOOST_NO_CXX11_TEMPLATE_ALIASES) template::value> -struct ptr_traits_rebind; - -template -struct ptr_traits_rebind { +struct ptr_traits_rebind { typedef typename T::template rebind type; };