21 Sep
2021
21 Sep
'21
2:49 p.m.
On Tue, Sep 21, 2021 at 7:34 AM Andrzej Krzemienski via Boost
I am not trying to solve any specific problem. It just strikes me that a shared_ptr is used in a demo example for the library. I was always of the opinion that a shared_ptr is often abused as a way of doing an ad-hoc GC.
In theory it should work since the echo protocol is half-duplex. What happens when you switch it to unique_ptr? Move-only handlers should work, but it is possible that Chris missed a place that is still doing a copy. Thanks