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)


 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:

Ticket URL: <>
Boost C++ Libraries <>
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