Skip to content

Instantly share code, notes, and snippets.

@JohnMurray
Last active Aug 2, 2020
Embed
What would you like to do?
int main() {
std::unique_ptr<Actor> actor = std::make_unique<HelloActor>("Howdy");
actor->enqueue([&actor]() {
// how do I get it to the correct receiver?
dynamic_cast<HelloBehavior*>(actor.get())->receive("neighbor");
});
actor->process_message();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment