
3 Nov
2012
3 Nov
'12
12:44 p.m.
On Nov 2, 2012, at 9:33 AM, Giovanni Piero Deretta <gpderetta@gmail.com> wrote:
On Fri, Nov 2, 2012 at 12:37 AM, Peter Dimov <lists@pdimov.com> wrote:
Olaf van der Spek wrote:
Does Glen's make_shared_array have variants for both initialized and
uninitialized allocations (for builtin types)?
This is a thorny issue. Some people want initialized allocations, some don't.
what about a boost::uninitialized object which is implicitly convertible to any T and will return an uninitialized T?
That would only work for built-in types and for UDTs with a default ctor that leaves the data members uninitialized. ___ Rob