Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <vector>
- struct Foo
- {
- int m_x;
- Foo() : m_x(0) { }
- Foo(const Foo&) = delete;
- Foo& operator=(const Foo&) = delete;
- };
- int main(int argc, const char *argv[])
- {
- std::vector<Foo> fooVec;
- fooVec.emplace_back();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement