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:
> https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1059388&group_id=7586

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk