
1 Nov
2012
1 Nov
'12
2:54 p.m.
Olaf van der Spek wrote:
On Thu, Nov 1, 2012 at 1:07 PM, Peter Dimov <lists@pdimov.com> wrote:
Glen has made the functions return a shared_ptr, mostly because they are non-intrusive and it's not possible to return a shared_array without changes to shared_ptr and shared_array.
Why's that impossible?
The implementation uses the allocator constructor and the aliasing constructor of shared_ptr, and shared_array doesn't have them.