//Using g++ and ubuntu. #include using namespace std;
Define a class:
class foo(){ (...) foo(int arg1, double arg2);
std::vector always create elements based on the default constructor which you haven't define in snippet above.
the push_back method is facing a double free issue because you did not handle the copy constructor.