I fear I wrote too much. What if you focus on the answer BEFORE "Meanwhile, "? The rest is a code review unrelated to the
bind
placeholder. You are confusing the handler interface (
void(error_code)
) with the implementation you bind to it (which can have any number of arguments). The placeholder number refers to the bound interface so,
_1
is actually correct. Note that you bind
this
and
connection
into the other parameters, so only the one placeholder remains. —
sehe 41 secs ago