Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9851: Iterators from rang have different category than the range
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-05-06 11:06:22
#9851: Iterators from rang have different category than the range
-------------------------------+------------------------
Reporter: anonymous | Owner: neilgroves
Type: Bugs | Status: new
Milestone: To Be Determined | Component: range
Version: Boost 1.55.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+------------------------
Comment (by neilgroves):
Replying to [comment:1 anonymous]:
> Strangely, removing the line
> {{{
> auto c = vector<int>(b::begin(b), b::end(b));
> }}}
> results in the output "1, 1" instead of "0, 0", so it seems like merely
chaining together adaptors causes the functions to be called. Perhaps the
problem is caused by something other than iterator categories after all.
This is because range adaptors are applied lazily. Therefore the change in
invocation counts is correct behaviour.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/9851#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:16 UTC