void func() { | |
std::unique_ptr<Foo> smart_foo = ...; | |
Foo* owned_foo = smart_foo.get(); | |
owned_foo->Bar(run_worker(std::move(smart_foo))); | |
^ | |
// <<<Crash expected here | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment