Re: [Boost-bugs] [Boost C++ Libraries] #5578: non-mutable local variables in phoenix

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5578: non-mutable local variables in phoenix
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-05-28 01:05:02


#5578: non-mutable local variables in phoenix
-------------------------------+--------------------------------------------
  Reporter: anonymous | Owner: theller
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: phoenix
   Version: Boost 1.46.1 | Severity: Problem
Resolution: | Keywords:
-------------------------------+--------------------------------------------

Comment (by anonymous):

 Everything is working as expected.

 Test 1:
 --_a ==> result is 41, will print 41
 Because it is captured by reference, it will have a side effect on i

 Test 2:
 i is captured by value, it will be decremented, but this change won't be
 "noticed" by the value-captured i. Correct behavior.

 Test 3 and Test 4:
 They actually compile and return the expected result

 These changes have been made just recently (a few hours ago), you might
 update your working copy.

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