S
sandwich_eater
I get a segmentation fault in my program when resizing a vector. This
seems strange because it is the second resize that causes the error.
std::vector<double> a;
std::vector<double> b;
a.resize(ndata - 1);
b.resize(ndata - 1); // fault occurs here
seems strange because it is the second resize that causes the error.
std::vector<double> a;
std::vector<double> b;
a.resize(ndata - 1);
b.resize(ndata - 1); // fault occurs here