Last active
August 2, 2020 21:39
-
-
Save JohnMurray/3e51cd19704c72ec126d5f278004caed to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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