Subject: Re: [boost] Interest in boost.deepcopy
From: Dave Abrahams (dave_at_[hidden])
Date: 2011-10-25 03:11:45
on Mon Oct 24 2011, Allan Johns <allan.johns-AT-drdstudios.com> wrote:
> Just gauging initial interest in a boost.deepcopy library
<pet peeve alert>
Sorry to slam this idea out of the gate, but the whole notion of a "deep
copy" is broken and wrong (in my humble opinion). When you say you're
going to "deep copy" an object it shows you don't understand the
boundaries of that object's value. The object's value is copied by its
copy constructor, and compared by its operator== (assuming it has one).
If your "deep copy" extends beyond the boundaries of the value, there's
no way of knowing how far it should extend.
-- Dave Abrahams BoostPro Computing http://www.boostpro.com
Boost list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk