From 7e95b4e2a4a578d88e5895703f8e1c28a98dbc6d Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Sun, 26 Jun 2005 18:00:58 +0000 Subject: [PATCH] Added cv-qualification to the member pointer. The issue here is that vc6 fails to strip const from the deduced type when a member pointer is passed by reference to a function template (I suspect it turns the const into a qualification on the class itself), so it may need extra help in detecting these. [SVN r29797] --- include/boost/type_traits/is_member_pointer.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/type_traits/is_member_pointer.hpp b/include/boost/type_traits/is_member_pointer.hpp index b26436f..2a77c6d 100644 --- a/include/boost/type_traits/is_member_pointer.hpp +++ b/include/boost/type_traits/is_member_pointer.hpp @@ -53,7 +53,7 @@ BOOST_TT_AUX_BOOL_TRAIT_PARTIAL_SPEC1_2(typename T,typename U,is_member_pointer, namespace detail { template -::boost::type_traits::yes_type BOOST_TT_DECL is_member_pointer_tester(R T::**); +::boost::type_traits::yes_type BOOST_TT_DECL is_member_pointer_tester(R T::*const volatile*); ::boost::type_traits::no_type BOOST_TT_DECL is_member_pointer_tester(...); template