17 Sep
2008
17 Sep
'08
1:52 p.m.
On Wed, Sep 17, 2008 at 6:21 AM, Daniel Krügler
I guess you want:
<snip>
Alternatively you could do this:
<snip>
Well I don't want to return by value, and I most certainly don't want to return a const reference (Since this Pass object must be mutable). For now I did a const_cast in the dereference() function and now I'm returning a non-const reference. If there is no solution to this, then this is broken. Any chance boost can fix this? I really don't think it makes much since for constness to be an issue here when I never designed my iterator to be const to begin with.