Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2004-11-04 18:33:08

"Eyal Farago" <eyal.farago_at_[hidden]> writes:

> I think you're wront about this, shared_ptr should behave just like
> a pointer (in this aspect). it really doesn't matter if the pointer
> is const or not, what matters is the constness of the pointee.
> typedef int* pint_t;
> const pint_t p = new int(1); //p is const(same as int * const)
> int &ref_to_int = *p; //but *p isn't
> eyal.

The OP is likely not watching this list. See the note below in the
original message:

> You can respond by visiting:

Dave Abrahams
Boost Consulting

Boost list run by bdawes at, gregod at, cpdaniel at, john at