on Mon Jul 23 2007, Daniel Oberhoff
hi
I am struggling with iterator_face. I have a container of bits with a smart reference type. This is because the exposed type is bool, but there is never a full boolean variable around for an index, just a single bit. So whenever a reference to a bool is requested I want to pass my smart reference that knows how to get and set this bit.
But iterator_facade is too smart for this: it wants to make a true reference to a supplied Value type,
iterator_facade uses the Reference type you pass in as the associated reference, which is returned from operator* Where do you see iterator_facade wanting to make a true reference?
which results in references to temporaries. Is there any way to tell iterator_facade to use my type as a ref type?
I'd like to know what you're seeing that leads you to believe it doesn't do that. -- Dave Abrahams Boost Consulting http://www.boost-consulting.com The Astoria Seminar ==> http://www.astoriaseminar.com