#include struct S { int x_, y_; S(int x, int y): x_(x), y_(y) {} }; std::vector v; int main() { v.push_back( S(0,0) ); return 0; }