|
Boost : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-05-02 07:26:58
From: "Doug Gregor" <gregod_at_[hidden]>
> boost::function essentially does use 'mutable' internally, because the
type
> erasure done to remove virtual functions uses free function pointers. It
> isn't undefined behavior, just surprising behavior to the user expecting
to
> get a const operator() called from a const boost::function.
Yep, you're right, I had another implementation in mind when I wrote that.
:-)
-- Peter Dimov Multi Media Ltd.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk