View difference between Paste ID: HQZKDM2b and eexXu5WB
SHOW: | | - or go back to the newest paste.
1-
Foo(Foo&& rhs) : val(rhs.val), str(rhs.str) noexcept
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
}