Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5475: [Foreach] rvalue reference binding of temporary ranges
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-10-16 18:55:42
#5475: [Foreach] rvalue reference binding of temporary ranges
--------------------------------------+-------------------------------------
Reporter: mimomorin@⦠| Owner: eric_niebler
Type: Patches | Status: closed
Milestone: To Be Determined | Component: foreach
Version: Boost Development Trunk | Severity: Problem
Resolution: fixed | Keywords: foreach, C++0x
--------------------------------------+-------------------------------------
Comment (by Michel Morin <mimomorin@â¦>):
Attached a patch that implements A (reverting to the C++03 BOOST_FOREACH
on gcc-4.4).
I've found that even with the simplest implementation of B
{{{
...
if (bool is_rng_defined) = false) {} else
for (auto &&rng = (EXPR); !is_rng_defined; is_rng_defined = true)
...
}}}
we can make a regression due to the nasty `auto` bug in gcc-4.4.
So we have only one choice: A.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5475#comment:27> 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:07 UTC