Guest User

Untitled

a guest
Sep 21st, 2019
422
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Foo(Foo&& rhs) noexcept : val(rhs.val), str(rhs.str)
  2. {
  3.     std::cout << "Move constructor is triggered\n";
  4.     rhs.val = nullptr;
  5.     rhs.str = nullptr;
  6. }
Advertisement
Add Comment
Please, Sign In to add comment