Skip to content

Instantly share code, notes, and snippets.

@tetsuok
Created January 25, 2016 07:18
Show Gist options
  • Save tetsuok/bc64200ac1d4c59cf199 to your computer and use it in GitHub Desktop.
Save tetsuok/bc64200ac1d4c59cf199 to your computer and use it in GitHub Desktop.
#include <vector>
#include <stdio.h>
using namespace std;
class Test {
public:
Test(int) { printf("ctor\n"); }
Test(const Test&) { printf("copy ctor\n"); }
};
int main() {
vector<Test> v;
v.push_back(0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment