[Bug c++/94008] "use of deleted function" error when using "std::unique_ptr", std::move() and lambda

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Mar 3 09:33:00 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94008

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Nicholas Krause from comment #1)
> Your passing into std::move and then again. That's incorrect as your moving
> and moving again into the test_lamba.

No, that's not what the code does.


More information about the Gcc-bugs mailing list