How can I create a smart pointer to an array of double?. I want to convert this expression :
double* darr = new double[N]; // Notice the square brackets
using smart pointer auto_ptr
the following instruction doesn't work:
auto_ptr<double[]> darrp(new double[N]);
Also how to get the values of the array using the smart pointer?.
Thanks
Younès