Boost C++ Libraries: Ticket #5484: remove_pointer does not remove cv-qualified pointers to function with vc10 https://svn.boost.org/trac10/ticket/5484 <p> boost::remove_pointer doesn't remove cv-qualified pointers to function with visual c++ 2010 sp1. </p> <pre class="wiki">#include &lt;boost/type_traits/remove_pointer.hpp&gt; #include &lt;boost/mpl/assert.hpp&gt; #include &lt;boost/type_traits/is_same.hpp&gt; BOOST_MPL_ASSERT((boost::is_same&lt; boost::remove_pointer&lt;int (* const)()&gt;::type, int (* const)() &gt;)); // success! </pre><p> With gcc 4.6.0, boost::remove_pointer&lt;int (* const)()&gt;::type correctly returns 'int ()'. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5484 Trac 1.4.3 John Maddock Tue, 19 Apr 2011 11:03:20 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/5484#comment:1 https://svn.boost.org/trac10/ticket/5484#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/71378" title="Fix remove pointer so it works for cv-qualified function pointers in ...">[71378]</a>) Fix remove pointer so it works for cv-qualified function pointers in VC-10 (compiler bug workaround). Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5484" title="#5484: Bugs: remove_pointer does not remove cv-qualified pointers to function with vc10 (closed: fixed)">#5484</a>. </p> Ticket