Boost logo

Boost :

From: John Max Skaller (skaller_at_[hidden])
Date: 2001-08-19 11:31:45


Beman Dawes wrote:

> Q. Why doesn't shared_ptr have template parameters supplying traits or
> policies to allow extensive user customization?
>
> A. Parameterization discourages users. Shared_ptr is carefully crafted to
> meet common needs without extensive parameterization.

        And that, IMHO, is the right approach.

> Someday a highly configurable smart pointer may be invented that is
> also very easy to use and very hard to misuse.

        Oh, it has been. And been in use for years and years.
Its called a garbage collector.

-- 
John (Max) Skaller, mailto:skaller_at_[hidden] 
10/1 Toxteth Rd Glebe NSW 2037 Australia voice: 61-2-9660-0850
New generation programming language Felix  http://felix.sourceforge.net
Literate Programming tool Interscript     
http://Interscript.sourceforge.net

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