Boost logo

Boost Users :

Subject: Re: [Boost-users] Help in using smart (double) pointers
From: Roman Shmelev (rshmelev_at_[hidden])
Date: 2009-08-17 08:34:20


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 list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net