Re: [Boost-bugs] [Boost C++ Libraries] #9742: for_each causes funny behavior in phoenix V3 expressions

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9742: for_each causes funny behavior in phoenix V3 expressions
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-04-07 16:43:57


#9742: for_each causes funny behavior in phoenix V3 expressions
-------------------------------+-----------------------------------
  Reporter: Chromatix | Owner: theller
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: phoenix
   Version: Boost 1.54.0 | Severity: Problem
Resolution: | Keywords: phoenix,for_each,lazy
-------------------------------+-----------------------------------

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

 This case also does not appear to have the problem:
 {{{
 std::vector<int> v{1,2};
 boost::function<void(int)> phxlam = phx::lambda[std::cout << arg1]();
 (
   std::cout << phx::val("("),
   phx::for_each(arg1, phxlam) ,
   std::cout << phx::val(")")
 )(v);
 }}}
 Note the () after the definition of the lambda. The problem seems to occur
 when the return from the for_each is a lambda_actor object.

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