3 ms·
>// 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
by Kristine1975 11y ago
>// 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).