From 2d56d6f55bdabcdb6ba4d20b0c4f58f98da25caa Mon Sep 17 00:00:00 2001 From: Glen Fernandes Date: Thu, 18 May 2017 20:09:52 -0400 Subject: [PATCH] Improve ptr_traits_has_rebind trait --- include/boost/core/pointer_traits.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/boost/core/pointer_traits.hpp b/include/boost/core/pointer_traits.hpp index 028b553..7c257f3 100644 --- a/include/boost/core/pointer_traits.hpp +++ b/include/boost/core/pointer_traits.hpp @@ -131,13 +131,13 @@ struct ptr_traits_difference { typedef std::ptrdiff_t type; }; -template +template struct ptr_traits_has_rebind { private: template static ptr_traits_none call(...); template - static char call(typename U::template rebind* = 0); + static char call(typename U::template rebind* = 0); public: BOOST_STATIC_CONSTEXPR bool value = sizeof(call(0)) == 1; }; @@ -169,7 +169,7 @@ struct ptr_traits_rebind_to, V> { #endif #if !defined(BOOST_NO_CXX11_TEMPLATE_ALIASES) -template::value> +template::value> struct ptr_traits_rebind { typedef typename T::template rebind type; };