Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5626: Compilation error when using boost::phoenix with range adaptors
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-06-29 14:21:20
#5626: Compilation error when using boost::phoenix with range adaptors
-------------------------------------------------------+--------------------
Reporter: Nicolas Savoire <nicos@â¦> | Owner: theller
Type: Bugs | Status: closed
Milestone: To Be Determined | Component: phoenix
Version: Boost Development Trunk | Severity: Regression
Resolution: fixed | Keywords:
-------------------------------------------------------+--------------------
Changes (by theller):
* status: new => closed
* version: Boost Release Branch => Boost Development Trunk
* resolution: => fixed
Comment:
> It seems that result_of<arg1(int)> returns int& instead of int.
Good observation. This shouldn't be the case. The right return type is
"int const &" in that case.
I commit the necessary fix to trunk. And will ask the release managers to
merge to release so the release won't suffer this defect.
However, it is quite late in the release process, so chances are that it
won't make it.
As a small workaround, I suggest the following:
{{{
boost::irange(0,5) | transformed( val( arg1 ) )
}}}
Thanks for your report.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5626#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:06 UTC