Boost logo

Boost Users :

Subject: Re: [Boost-users] Problem with iterator_facade
From: Robert Dailey (rcdailey_at_[hidden])
Date: 2008-09-17 12:02:45


On Wed, Sep 17, 2008 at 10:45 AM, Daniel Krügler <dsp_at_[hidden]> wrote:
> 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.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net