Re: [Boost-bugs] [Boost C++ Libraries] #10785: Lambda assignment fails to compile in 1.57.0

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10785: Lambda assignment fails to compile in 1.57.0
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-11-12 19:53:37


#10785: Lambda assignment fails to compile in 1.57.0
-------------------------------+---------------------------
  Reporter: dolfim@… | Owner: no-maintainer
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: lambda
   Version: Boost 1.57.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+---------------------------

Comment (by marshall):

 More info: this compiles fine for me on clang with `-std=c++11` or
 `-std=c++14`, but fails with `-std=c++03`

 This is the part that causes the problem:
 {{{
     boost::function<int (int, int)> fuse =
                 boost::lambda::bind(&add, boost::lambda::_1,
 -boost::lambda::_2);
 }}}

 and commenting out the first line removes the error.

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