Re: [Boost-bugs] [Boost C++ Libraries] #6155: VS2010 compile error in lambda, if posix_time.hpp is included.

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6155: VS2010 compile error in lambda, if posix_time.hpp is included.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-11-20 13:35:39


#6155: VS2010 compile error in lambda, if posix_time.hpp is included.
------------------------------------+---------------------------------------
  Reporter: fzuuzf@… | Owner: az_sw_dude
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: date_time
   Version: Boost 1.48.0 | Severity: Regression
Resolution: | Keywords: vs2010 C2663
------------------------------------+---------------------------------------

Comment (by anonymous):

 Simplified testcase,[[BR]]
 regression also shows without shared_ptr<>:

 {{{
 #include <boost/date_time/posix_time/posix_time.hpp>

 class A {};

 class B: public std::vector<A> {
 public:
         void f() {
                 unsigned u_(0);

                 auto lambda_([&]() {
                         at(u_); // boost1.48: error C2663:
 'std::vector<_Ty>::at' : 2 overloads have no legal conversion for 'this'
 pointer
                                         // boost1.46.1: ok
                         this->at(u_); // ok
                 });

         }
 };

 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6155#comment:2>
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:07 UTC