Re: [Boost-bugs] [Boost C++ Libraries] #8617: Surprising/wrong semantics of counting_range

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8617: Surprising/wrong semantics of counting_range
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-05-30 22:41:42


#8617: Surprising/wrong semantics of counting_range
--------------------------------+-------------------------------------------
  Reporter: pbazant@… | Owner: neilgroves
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: range
   Version: Boost 1.53.0 | Severity: Problem
Resolution: | Keywords: range
--------------------------------+-------------------------------------------

Comment (by nathanridge):

 I confess I find it surprising that an overload of counting_range() that
 takes a range exists at all.

 I agree that constructing a counting range from the first and last values
 of a range seems arbitrary, but constructing a counting range from the
 begin and end *iterator* of a range seems pointless (how would the
 resulting range be different from the original one?).

 Neil, what use cases did you have in mind for this overload of
 counting_range()?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8617#comment:1>
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:13 UTC