Re: [Boost-bugs] [Boost C++ Libraries] #7317: [type_traits] remove_const not working on vc11

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7317: [type_traits] remove_const not working on vc11
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-09-24 22:40:05


#7317: [type_traits] remove_const not working on vc11
-------------------------------+--------------------------------------------
  Reporter: eric_niebler | Owner: johnmaddock
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: type_traits
   Version: Boost 1.52.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+--------------------------------------------

Comment (by eric_niebler):

 I haven't added a test for this because it looks like you have a TT
 testing system that I haven't grokked. But here is a very simple test case
 that should expose the problem.

 {{{
 #include <boost/type_traits/remove_const.hpp>

 struct S
 {
     template<typename T>
     typename boost::remove_const<T>::type *operator=(T const &t) const {
 return 0; }
 };

 void bar() {}

 int main()
 {
     S s;
     s = bar;
 }
 }}}

 With the patch, this compiles. Without it, it doesn't.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7317#comment:4>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:10 UTC