Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-10-04 08:09:22


[...]

This is a general response to the thread.

Before investing further efforts in this area, please do realize that raw
pointers do not inherit from one another. "T *" IS-NOT-A "T const *" or "T
volatile *", and "Derived *" IS-NOT-A "Base *". A const reference to "T
const *" does not bind directly to a "T *", it binds to a temporary copy of
type "T const *" using the standard pointer conversion. This is exactly what
shared_ptr does, too, except that it uses a user-defined conversion, for
obvious reasons.


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