Skip to content

Instantly share code, notes, and snippets.

@danlark1

danlark1/more_failures.cc Secret

Created Oct 8, 2020
Embed
What would you like to do?
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
You can’t perform that action at this time.