boostorg / range

Boost.org range module
http://boost.org/libs/range
43 stars 104 forks source link

Preconditions for sliced and copied too strong #74

Open tobias-loew opened 5 years ago

tobias-loew commented 5 years ago

Hi,

in the documentation the preconditions of sliced and copied should state:

0 <= n && n <= m && m <= distance(rng)
                       ^

currently it says

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