Skip to content

Instantly share code, notes, and snippets.

@JohnMurray
Created July 25, 2020 16:59
Show Gist options
  • Save JohnMurray/efb9c6eaea0afb36ca4ba52298b79efc to your computer and use it in GitHub Desktop.
Save JohnMurray/efb9c6eaea0afb36ca4ba52298b79efc to your computer and use it in GitHub Desktop.
auto ref = make_actor<HelloActor>(system, "Greetings");
auto generic_ref = actor_ref_cast<HelloBehavior>(ref);
generic_ref.send("Bob"); // still works!
generic_ref.send(false); // still an error!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment