
12 Oct
2011
12 Oct
'11
10:17 a.m.
Arun Ramasamy wrote:
Thanks David. Here's some sample test code: ... class Iterator : public boost::iterator_facade<Iterator, int, boost::bidirectional_traversal_tag>{ ... IntVolume& volume; int pos;
};
Your Iterator has a reference data member `volume`, so it cannot be copied. If you change a reference to a pointer, everything goes fine. And please don't top-post! ( http://www.boost.org/community/policy.html#quoting ) Regards, Michel