Skip to content

Instantly share code, notes, and snippets.

@JohnMurray
Last active Aug 3, 2020
Embed
What would you like to do?
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