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

Subject: [Boost-bugs] [Boost C++ Libraries] #12374: doku bug boost::adaptors::sliced
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-08-03 09:09:49


#12374: doku bug boost::adaptors::sliced
------------------------------+---------------------------
 Reporter: brix@… | Owner: matias
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: Documentation
  Version: Boost 1.61.0 | Severity: Problem
 Keywords: documentation |
------------------------------+---------------------------
 Precondition: 0 <= n && n <= m && m < distance(rng)
 must be
  Precondition: 0 <= n && n <= m && m =< distance(rng)

 example:

 std::vector<int> vec;
 vec.push_back(3);
 auto wholeVectorSlice=boost::adaptors::slice(vec,0,vec.size());
 //distance(rng)==1

 Otherwise it woudln't be possible to include the last element of the input
 range in the slice.

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