
4 Nov
2004
4 Nov
'04
11:33 p.m.
"Eyal Farago" <eyal.farago@actimize.com> 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