float* vertex = new float[vec.size()];
12
for(...) vertex[i] = ...
vector.push_back(*vertex);
cannot convert argument 1 from 'float' to 'const float (&)[]'
12345
vector<float*> vector_of_float_pointers; float* vertex = new float[8]; // an array of 8 float-pointers vector_of_float_pointers.push_back(vertex ); // vector now contains one float-pointer