Re: [Boost-bugs] [Boost C++ Libraries] #5913: Boost.Asio interferes with C++0x-Lambdas having [this]-Capture on MSVC2010

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5913: Boost.Asio interferes with C++0x-Lambdas having [this]-Capture on MSVC2010
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-09-19 17:11:35


#5913: Boost.Asio interferes with C++0x-Lambdas having [this]-Capture on MSVC2010
----------------------------------+-----------------------------------------
  Reporter: boost@… | Owner:
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: None
   Version: Boost 1.46.1 | Severity: Not Applicable
Resolution: invalid | Keywords:
----------------------------------+-----------------------------------------
Changes (by boost@…):

  * status: new => closed
  * resolution: => invalid
  * severity: Problem => Not Applicable

Comment:

 Ok, I reduced the Problem to the following Code, so it's a MSVC bug:

 {{{
 #!cpp
 namespace n1 {
   class far_away {
     struct data {};
   };
 } //ns n1

 namespace n2 {
   struct Data {
     int i;
   };

   struct Foo {
     Data* data;

     void bar() {
       auto callback = [this]() {
         data->i = 5;
       };
     }
   };
 } //ns n2
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5913#comment:1>
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