Boost logo

Boost :

From: John Maddock (John_Maddock_at_[hidden])
Date: 2001-10-27 05:29:49


> When BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION is defined,
is_member_pointer
will not correctly handle pointers to cv-qualified member functions. The
failure has been verified to occur under MSVC 6sp5, Sun CC 5.2, and Comeau
(with BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION explicitly defined).
  The fix is trivial - duplicate the overloads is_member_pointer_helper for

each permutation of cv-qualifiers. I've verified this to work under MSVC
and
under Comeau (hobbled with BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION).
  If there are no objections, I'd like to commit the above change along
with
additional tests for cv-qualified member functions in
composite_traits_test.cpp.
<

Yep, please go ahead.

- John Maddock
http://ourworld.compuserve.com/homepages/john_maddock/


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk