Advertisement
Guest User

Untitled

a guest
Sep 4th, 2012
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. #include <vector>
  2. struct Foo
  3. {
  4.     int m_x;
  5.     Foo() : m_x(0) { }
  6.     Foo(const Foo&) = delete;
  7.     Foo& operator=(const Foo&) = delete;
  8. };
  9. int main(int argc, const char *argv[])
  10. {
  11.     std::vector<Foo> fooVec;
  12.     fooVec.emplace_back();
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement