|
Boost : |
From: Andrew D Jewell (ajewell_at_[hidden])
Date: 2000-03-13 12:18:22
>All you lose is the
>ability to declare a non-reseatable pointer to a modifiable object. (Note
>that mutable doesn't give you that back.)
Here is a list of all the permutations of const-ness, and the classes
we have discussed to create them.
Is the thing you want a const shared_ptr or an OtherThing1?
regular method const method
pointer object pointer object
const qualified_ptr
const qualified_ptr<const>
const shared_ptr<const> const const const const
OtherThing1 const non const const
const shared_ptr const non const non
shared_ptr<const>
qualified_ptr<const> non const const const
mutable qualified_ptr<const> non const non const
shared_ptr
mutable shared_ptr non non const non
qualified_ptr non non const const
mutable qualified_ptr non non non non
OtherThing2 non non non const
Andy Jewell
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk