Boost logo

Boost :

Subject: Re: [boost] [utility] prior(it, n) for n being an unsigned type
From: Gavin Lambert (gavinl_at_[hidden])
Date: 2014-06-24 02:25:45


On 24/06/2014 18:21, Adam Romanek wrote:
> Just out of curiosity - why haven't you chosen the std::reverse_iterator
> -based approach described in the old thread?

"It should also work with integers now, as was originally intended by
David Abrahams"

+ BOOST_REQUIRE(boost::next(5) == 6);
+ BOOST_REQUIRE(boost::next(5, 7) == 12);


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk