Commit ca1f9e92 authored by Dominik Charousset's avatar Dominik Charousset

Fix Protobuf example, close #361

parent d5061b01
...@@ -17,8 +17,8 @@ using namespace std; ...@@ -17,8 +17,8 @@ using namespace std;
using namespace caf; using namespace caf;
using namespace caf::io; using namespace caf::io;
void print_on_exit(const actor& ptr, const std::string& name) { void print_on_exit(const actor& hdl, const std::string& name) {
ptr->attach_functor([=](std::uint32_t reason) { hdl->attach_functor([=](abstract_actor* ptr, uint32_t reason) {
aout(ptr) << name << " exited with reason " << reason << endl; aout(ptr) << name << " exited with reason " << reason << endl;
}); });
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment