Boost logo

Boost :

From: David B. Held (dheld_at_[hidden])
Date: 2003-02-05 11:14:08

"Pavel Vasiliev" <pavel_at_[hidden]> wrote in message
> [...]
> Implementing of refc_ptr as a set of policies is also possible, but
> currently that seems to be overkill, both in unnecessary
> complexity and performance losses. Though this my opinion may
> change with time.

I certainly hope there aren't performance losses! That's one of the
main motivations for writing custom policies. How would there be
a performance loss with SmartPtr?

> Conclusion: IMO, policy-based implementations like
> Loki::SmartPtr<> and "fixed" ones like boost::shared_ptr<T> or
> my refc_ptr<T> serve different needs. Do I say something new?
> Hardly.

You're right for now, but if we get template aliasing...even so,
it is possible to emulate almost any pointer with SmartPtr (though
some are admittedly more difficult than others), and even though
this requires a non-default policy set, a type generator wrapper
will usually suffice.


Boost list run by bdawes at, gregod at, cpdaniel at, john at