|
Boost : |
From: Daniel Frey (daniel.frey_at_[hidden])
Date: 2003-02-20 09:35:38
"Fernando Cacciola (Home)" wrote:
>
> Hi!
>
> I'm under the process of getting rid of some of my old
> smart pointers replacing them by shared_ptr<>.
> There is however one idiomatic usage that it's pretty
> hard to locate and edit, so I wondered if shared_ptr<>
> could support it.
I don't think it's a good idea for shared_ptr if it will always be a
part of the interface. I guess some people don't want to support the
style of initializing and assigning from 0 and they hope for help from
the compiler to get rid of it. If OTOH we look at a policy based smart
pointer, you idea can probably turned into a policy and no one would
have a problem with it :)
Regards, Daniel
-- Daniel Frey aixigo AG - financial training, research and technology Schloß-Rahe-Straße 15, 52072 Aachen, Germany fon: +49 (0)241 936737-42, fax: +49 (0)241 936737-99 eMail: daniel.frey_at_[hidden], web: http://www.aixigo.de
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk