Commit ab69cbd9 authored by Dominik Charousset's avatar Dominik Charousset

Fix potential use-after-move

parent 1b67ef3b
...@@ -189,7 +189,8 @@ public: ...@@ -189,7 +189,8 @@ public:
}; };
for (auto id : ids_) { for (auto id : ids_) {
typename Self::accept_one_cond rc; typename Self::accept_one_cond rc;
self->varargs_receive(rc, id, helper.wrap(), error_handler); auto error_handler_copy = error_handler;
self->varargs_receive(rc, id, helper.wrap(), error_handler_copy);
} }
} }
......
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