[boost][range] - Trac item 4226 - Implemented a safe_bool utility class that is intended to be refactored into a core area. Integrated this into iterator_range.

[SVN r67463]
This commit is contained in:
Neil Groves
2010-12-26 23:14:08 +00:00
parent efb7b50a8a
commit c506d2537f
3 changed files with 81 additions and 15 deletions

View File

@ -15,7 +15,6 @@
#include <boost/range/iterator_range.hpp>
#include <boost/iterator/iterator_adaptor.hpp>
#include <iterator>
#include <iostream>
namespace boost
{
@ -206,14 +205,11 @@ namespace boost
private:
void increment()
{
std::cout << "increment() - before = " << (this->base_reference() - m_first);
base_iterator& it = this->base_reference();
if ((m_last - it) > m_stride)
it += m_stride;
else
it = m_last;
std::cout << " after = " << (this->base_reference() - m_first) << std::endl;
}
void decrement()