|
Boost : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2007-07-13 11:20:20
Hartmut Kaiser wrote:
...
> Seems to be fine this way. Hold_any supports streaming only if the
> contained datatype is streamable.
Are you sure that hold_any can be used with a non-streamable type at all?
Also, in assign<T>, are you sure that overwriting the old object contents
with placement new without destroying the object first is a good idea? Looks
like repeated a = std::string( "..." ) calls will leak the heap-allocated
string contents on each assignment.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk