Re: [Boost-bugs] [Boost C++ Libraries] #8298: Clang error with Boost Phoenix Local Name Assignment using C++11

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8298: Clang error with Boost Phoenix Local Name Assignment using C++11
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-02-07 22:37:47


#8298: Clang error with Boost Phoenix Local Name Assignment using C++11
--------------------------------------+---------------------
  Reporter: Paul Keir <pkeir@…> | Owner: theller
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: phoenix
   Version: Boost Development Trunk | Severity: Problem
Resolution: | Keywords:
--------------------------------------+---------------------

Comment (by John Fletcher <J.P.Fletcher@…>):

 The bug here is that this ever worked. The local variables _a do not
 provide a true variable. This means that _a = 17 followed by _a = 18
 amounts to 17 = 18 i.e. assigning to a constant. The attached file
 n8298.cpp shows two ways to do it validly by providing a variable, and
 also uses the return value from the lambda to export a value. John
 Fletcher

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8298#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:15 UTC