: ERROR HANDLING !!!
ERROR HANDLING !!!
conversion of std::vector<double> to double* in a safe and portable way.