Hi,
I remember that the main difference between "int * a = new
std::complex<double>;" and "int *b = new std::complex<double>[10]" is
that the compiler keep the size of the array that "b" pointing to. So
"delete [] b" will call "std::complex<double>"'s destructor 10 times.
If that is the case, can we have any way to know the size of the array
the shared_array pointing to?
Thanks,
Peng