Advertisement
GeneralGDA

Does not compile.

Oct 20th, 2015
438
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.21 KB | None | 0 0
  1. #include "stdafx.h"
  2.  
  3. class Foo
  4. {
  5. public:
  6.  
  7.     Foo() = default;
  8.     Foo(const Foo&) = delete;
  9.  
  10. };
  11.  
  12. Foo make_foo()
  13. {
  14.     Foo foo;
  15.     return foo;
  16. }
  17.  
  18. int _tmain(int, _TCHAR*)
  19. {
  20.     Foo foo = make_foo();
  21.     return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement