Boost logo

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

qualified_ptr<const> non const const const

mutable qualified_ptr<const> non const non const

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, gregod at, cpdaniel at, john at