Boost logo

Boost :

From: Andrei Alexandrescu (andrewalex_at_[hidden])
Date: 2003-01-31 23:07:53


"David B. Held" <dheld_at_[hidden]> wrote in message
news:b1ehpj$j1n$1_at_main.gmane.org...
> Actually, you can control mixing by determining which policies can be
> constructed from which other policies. I just didn't know if it was a
> good idea to let users freely mix auto_ptr with shared_ptr. But I
> suppose if they get an auto_ptr from legacy code, and they want it to be
> managed by shared_ptr, that is a legitimate use.

Indeed. Having policies decide which way, if at all, they plan to
interoperate, is imho a key strenght of pbd.

Most ownership policies should accept the destructive copy policy.

Andrei


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