2 ms·
Asio enforces exactly once semantics for callbacks, so if you are careful you can thread your state through your callbacks [1] in a linear way and avoid referen
by gpderetta 7y ago
Asio enforces exactly once semantics for callbacks, so if you are careful you can thread your state through your callbacks [1] in a linear way and avoid reference counting. It is not always worth the effort though, but coroutines should make it trivial.
[1] last time I checked ASIO didn't support move only callbacks so it was ackward to implement. Things might have changed since.