|
Boost Users : |
From: Jean-François Brouillet (verec_at_[hidden])
Date: 2005-05-20 16:36:05
>>> What is the name you would choose for the "addRef" parameter?
>>> "managed" ? Or maybe, simply "addRef" after all, since you
>>> would _assume_ by virtue of the symmetric behaviour of a destructor
>>> w.r.t a constructor, that whatever the constructor does, the
>>> destructor un-does it, and whatever the constructor does NOT do,
>>> the destructor does NOT un-do.
>
> Bad assumption with smart pointers. Ctors don't allocate resources,
> yet dtors deallocate them.
Which might only indicate that they are not so "smart" after all... ;-)
-- JFB
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net