Boost logo

Boost :

From: Hamish Mackenzie (hamish_at_[hidden])
Date: 2003-06-26 03:19:17


On Thu, 2003-06-26 at 01:19, Stefan Seefeld wrote:
> I believe _ptr and _ref are fairly equivalent.

I think CORBA predates even original STL.
In STL meaning of pointer and reference is...

typedef foo & foo_reference;
typedef foo * foo_pointer;

*ptr <==> ref
ptr->x() <==> ref.x()

So you would not expect a pointer to have any
members other than those for managing the pointer.

Plus a reference should never be null.

See my other post on how to make both pointers and references.

-- 
Hamish Mackenzie <hamish_at_[hidden]>

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