17 Sep
2008
17 Sep
'08
4:02 p.m.
On Wed, Sep 17, 2008 at 10:45 AM, Daniel Krügler
Of-course there exists a solution, but I misunderstood your original request. I think you should declare your member as mutable, which is the safest way here. If you would use const_cast you would land on UB island if someone tries to work with a const PassIterator.
Thanks for the help guys. I'll use mutable.