|
Boost : |
Subject: Re: [boost] Review of a safer memory management approach for C++?
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2010-05-27 14:23:08
Ingo Loehken wrote:
> if I understand "hard to reason about" in the right why
Aliasing already makes programs hard to reason about, and albeit this is
mostly known as an optimizer problem rather than a human one, it does
make changes to state hard to track.
Sharing ownership means it also becomes difficult to tell what the
lifetime of an object is.
> there is no
> need for shared ownership at all
I didn't say it wasn't needed; just that you shouldn't apply it to
everything as a silver bullet fixing your memory management problems.
There are other ways to do memory management well with exclusive ownership.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk