From: David Abrahams (abrahams_at_[hidden])
Date: 2001-04-04 07:16:35
----- Original Message -----
From: "Beman Dawes" <bdawes_at_[hidden]>
> Ah! The light dawns on Marblehead! I had been misreading C::~C as
> This is starting to seem more familiar. Isn't it a variation of something
> Kevin Atkinson did in his clone_ptr? (Apologies if I've misremembered his
> It would apply to other smart pointers, too, wouldn't it? shared_ptr,
> auto_ptr, etc?
> The downside is that it will break some existing code, although the fix is
> trivial. But it does increase safety, so is worth doing. Where does that
> leave std::auto_ptr<>? Odd man out, as usual, I guess.
Just missing a simple trick that nobody thought to apply. Maybe we could
propose this as an upgrade in the next version of C++.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk