News for hackers. Stuff that matters.
Re:Under the hood of C++ lambdas and std::function by Kristine1975 on Monday March 28, 2016 @06:43AM (#11373535)
>// ILLEGAL. Cannot use moved value

Actually that depends on the implementation of "Foo". After all "foo" has not been destroyed yet.

Edit: An instance of std::unique_ptr for example points to nullptr after having been moved to another instance (C++14 Standard §20.8.1p4.2).

There are no comments on this comment yet.