Boost logo

Boost :

From: Beman Dawes (bdawes_at_[hidden])
Date: 2002-01-17 11:15:52


At 10:43 AM 1/17/2002, Peter Dimov wrote:

>From: "Beman Dawes" <bdawes_at_[hidden]>
>[...]
>> The example code is available at:
>> http://groups.yahoo.com/group/boost/files/smart_pointers/nested_ptr.hpp
>
>// Similar to Loki::SmartPtr, but with a different inheritance
hierarchy.
>// Peter Dimov has pointed out (joke) that pointer_type is probably
always
>T*.
>
>Not a joke at all.

Sorry, poor choice of words on my part. I meant that "pointed out" was a
pun, or play on words, since we are talking about "pointers".

I think your question is an important one. We need to nail down the
answer.

If pointer_type is in fact always T*, that fact might be used to simply the
inheritance hierarchy.

Also, is reference_type always T&? And stored_type T*?

If not, it would be nice to document examples.

--Beman


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