
Chris Goller schrieb:
I'm using iterator_facade to implement an iterator over file based data.
So, my question is, since deference returns a reference to a value does that reference need to persist when the iterator is incremented or decremented?
yes it has. but the reference type does not have to be necessarily a c++ reference. it is by default, but you can change the reference type to the value type, to a shared_ptr, whatever you want by setting the, I think, 4th template parameter of iterator_facade.
Because this is file based data I can't always keep a reference around because the data is stored on disk.
Thanks,
Chris _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- Stefan Strasser