Fix bug in deregister_handler in actor example.

This commit is contained in:
Caleb Epstein 2018-06-28 18:10:19 -04:00 committed by Christopher Kohlhoff
parent 547f06a1e4
commit 6554073823

View File

@ -120,7 +120,7 @@ protected:
template <class Actor, class Message>
void deregister_handler(void (Actor::* mf)(Message, actor_address))
{
const std::type_info& id = typeid(message_handler<Message>);
const std::type_info& id = typeid(Message);
for (auto iter = handlers_.begin(); iter != handlers_.end(); ++iter)
{
if ((*iter)->message_id() == id)