1 Feb
2013
1 Feb
'13
5:01 p.m.
On 1 February 2013 16:46, young
Can I assign a array to a shared_ptr pointer?
Read the docs, Luke! "Normally, a shared_ptr cannot correctly hold a pointer to a dynamically allocated array. See shared_array for that usage." http://www.boost.org/doc/libs/1_52_0/libs/smart_ptr/shared_ptr.htm And, don't forget to follow the link there and read this one too: http://www.boost.org/doc/libs/1_52_0/libs/smart_ptr/shared_array.htm Best regards, -- Mateusz Loskot, http://mateusz.loskot.net