
25 Oct
2011
25 Oct
'11
2:13 a.m.
AMDG On 10/24/2011 05:16 PM, Allan Johns wrote:
Just gauging initial interest in a boost.deepcopy library, analogous to deepcopy in python. Each type would register deepcopy behaviour with the library (there are similarities to boost.serialize). Boost.deepcopy would supply out-of-the-box registration for pod types, pointer types, arrays, stl containers and common boost containers. Example:
I'm not sure why I would want to use something like this. Normally, in C++, the copy constructor is expected to do a deep copy, when it exists. In Christ, Steven Watanabe