From: Roman Shmelev <rshmelev@gmail.com>
To: boost-users@lists.boost.org
Sent: Monday, August 17, 2009 6:04:20 PM
Subject: Re: [Boost-users] Help in using smart (double) pointers
I guess, you need shared_array of shared_array<int>.
> int **palette = new int* [5];
> palette[0] = new int[10];
> palette[1] = new int[7];
Something like:
shared_array<shared_array<int>> palette (new shared_array<int>[5]);
palette[0].reset(new int[10]);
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.orghttp://lists.boost.org/mailman/listinfo.cgi/boost-users