Skip to content

Instantly share code, notes, and snippets.

@JohnMurray
Last active August 3, 2020 01:56
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/c43282aea202d0479c0c779f7cd75c70 to your computer and use it in GitHub Desktop.
Save JohnMurray/c43282aea202d0479c0c779f7cd75c70 to your computer and use it in GitHub Desktop.
template<typename RefOf>
class ActorRef {
std::shared_ptr<RefOf> m_actor;
public:
ActorRef(std::shared_ptr<RefOf> actor)
: m_actor(actor) {}
template<typename Message>
void send(Message&& msg) { /* TODO */ }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment