Steven Watanabe wrote:
AMDG
What does the default constructor have to do with it?
Also, the enable_if you
put on it is wrong.
Since enable_if is wrong (no ::type), then I guess it is the other
change (accessing the base through super_t) which corrects the problem
below, right?
#include <vector>
#include
#include
#include
void example_iter(std::ostream& os){
using namespace boost;
typedef double val_;
typedef std::vector vec_;
typedef range_size::type size_;
typedef range_iterator::type base_it_;
const unsigned n = 10;
vec_ vec(n);
typedef cycle_iterator it_;
typedef cycle_iterator_ext it_ext_;
it_ it(boost::begin(vec),boost::end(vec),0);
it_ext_ it_ext(boost::begin(vec),boost::end(vec),0);
it_ it2;
//it2 = it; //error: attempt to copy from a singular iterator.
it_ext_ it_ext2;
it_ext2 = it_ext;
}