Opened 12 years ago

Closed 12 years ago

#5484 closed Bugs (fixed)

remove_pointer does not remove cv-qualified pointers to function with vc10

Reported by: iorate Owned by: John Maddock
Milestone: To Be Determined Component: type_traits
Version: Boost 1.46.1 Severity: Problem
Keywords: Cc:

Description

boost::remove_pointer doesn't remove cv-qualified pointers to function with visual c++ 2010 sp1.

#include <boost/type_traits/remove_pointer.hpp>

#include <boost/mpl/assert.hpp>
#include <boost/type_traits/is_same.hpp>

BOOST_MPL_ASSERT((boost::is_same<
    boost::remove_pointer<int (* const)()>::type,
    int (* const)()
>)); // success!

With gcc 4.6.0, boost::remove_pointer<int (* const)()>::type correctly returns 'int ()'.

Change History (1)

comment:1 by John Maddock, 12 years ago

Resolution: fixed
Status: newclosed

(In [71378]) Fix remove pointer so it works for cv-qualified function pointers in VC-10 (compiler bug workaround). Fixes #5484.

Note: See TracTickets for help on using tickets.