From 6554073823c5b2afa380a5d5960ce2c693eb5cd6 Mon Sep 17 00:00:00 2001 From: Caleb Epstein Date: Thu, 28 Jun 2018 18:10:19 -0400 Subject: [PATCH] Fix bug in deregister_handler in actor example. --- asio/src/examples/cpp14/executors/actor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asio/src/examples/cpp14/executors/actor.cpp b/asio/src/examples/cpp14/executors/actor.cpp index 26d2fb4b..e2cc9ba2 100644 --- a/asio/src/examples/cpp14/executors/actor.cpp +++ b/asio/src/examples/cpp14/executors/actor.cpp @@ -120,7 +120,7 @@ protected: template void deregister_handler(void (Actor::* mf)(Message, actor_address)) { - const std::type_info& id = typeid(message_handler); + const std::type_info& id = typeid(Message); for (auto iter = handlers_.begin(); iter != handlers_.end(); ++iter) { if ((*iter)->message_id() == id)