Re: [Boost-bugs] [Boost C++ Libraries] #12374: doku bug boost::adaptors::sliced

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #12374: doku bug boost::adaptors::sliced
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-09-24 14:42:22


#12374: doku bug boost::adaptors::sliced
-------------------------------+---------------------------
  Reporter: brix@… | Owner: neilgroves
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: range
   Version: Boost 1.61.0 | Severity: Problem
Resolution: | Keywords: documentation
-------------------------------+---------------------------
Changes (by joakimas@…):

 * cc: joakimas@… (added)

Comment:

 I noticed this too when looking at the documentation.
 Why shouldn't we be allowed to include the last element when slicing?
 I guess this might be a problem only with the documentation.

 It seems like a more useful precondition would be

 {{{
 0 <= n && n <= m && m <= distance(rng)
 }}}

 In addition, the "returns" part of the text says the result is
 "make_range(rng, n, m)" but I fail to find any useful documentation on
 what "make_range" is.

 For reference, I have been looking at this page:
 http://www.boost.org/doc/libs/1_61_0/libs/range/doc/html/range/reference/adaptors/reference/sliced.html

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12374#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:20 UTC