Re: [Boost-bugs] [Boost C++ Libraries] #5475: [Foreach] rvalue reference binding of temporary ranges

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5475: [Foreach] rvalue reference binding of temporary ranges
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-08-16 06:57:29


#5475: [Foreach] rvalue reference binding of temporary ranges
--------------------------------------+-------------------------------------
  Reporter: mimomorin@… | Owner: eric_niebler
      Type: Patches | Status: reopened
 Milestone: To Be Determined | Component: foreach
   Version: Boost Development Trunk | Severity: Problem
Resolution: | Keywords: foreach, C++0x
--------------------------------------+-------------------------------------

Comment (by michel):

 Before gcc 4.7.1 and gcc 4.8.0 (not yet released), auto type deduction in
 function templates is done differently than the one in non-template
 functions. This resulted in many bugs in gcc 4.4-4.6 for auto type
 deduction in function templates. So my patch does workarounds for those
 compilers.

 In gcc 4.7.0, I don't know of any bugs that affect (normal) C++11
 implementation of BOOST_FOREACH. But gcc 4.7.0 still contains bugs of auto
 type deduction in function templates (c.f.
 [[http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53484|PR53484 ("Wrong auto
 in lambdas in function templates")]]), and there might be a bug that needs
 workarounds as in gcc 4.4-4.6.

 Would it be better to do workarounds for gcc 4.7.0, too? (My patch does
 not apply workarounds for gcc 4.7.0.)

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5475#comment:36>
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:10 UTC