Skip to content

Instantly share code, notes, and snippets.

@JohnMurray
Created July 26, 2020 22:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JohnMurray/38a3eebb6d49fb8e89424a972688bd52 to your computer and use it in GitHub Desktop.
Save JohnMurray/38a3eebb6d49fb8e89424a972688bd52 to your computer and use it in GitHub Desktop.
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