Created
July 26, 2020 22:49
-
-
Save JohnMurray/38a3eebb6d49fb8e89424a972688bd52 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
class HelloActor : public Actor { | |
std::string m_greeting; | |
public: | |
HelloActor(std::string const& greeting): m_greeting(greeting){}; | |
void receive(std::string const& msg) { | |
std::cout << m_greeting << " " << msg << "\n"; | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment