Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7630: Range adaptors do not play nicely with range-based for loops
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-01-30 16:58:14
#7630: Range adaptors do not play nicely with range-based for loops
-------------------------------+------------------------
Reporter: gromer@⦠| Owner: neilgroves
Type: Bugs | Status: new
Milestone: To Be Determined | Component: range
Version: Boost 1.51.0 | Severity: Problem
Resolution: | Keywords: range
-------------------------------+------------------------
Comment (by Igor Lubashev <ilubashe@â¦>):
See #9578 for a related issue, related to BOOST_FOREACH and adaptors.
I view comment:2 regarding the documented types as a very minor issue.
Since the application of adaptors to r-values has previously resulted in
undefined behavior, changing the data type returned for the application of
adaptors to r-values should not break almost any properly working code
that is relying on this documentation.
The only kind of working code that could rely on this would be something
like `foo(map<int,int>() | map_keys)`. In such cases, I would expect that
`foo` is actually declared as a template that automatically captures the
range type, so no harm done.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7630#comment:10> 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