Is it that the "close handler" is called only from the destructor of `m_nextSocket` or `m_io_service` or something like that?
Is it that the "close handler" is called only from the destructor of `m_nextSocket` or `m_io_service` or something like that? Notice that data member `m_connections` is defined *last* in the member list, so it will be destroyed *first*. So referring to `this->m_connections` from a lambda that's called from within the destructor of one of `this`'s other members would be a recipe for disaster.
But I have basically zero knowledge of asio and don't know whether the premise of my hypothesis makes any sense or not.
But I have basically zero knowledge of asio and don't know whether the premise of my hypothesis makes any sense or not.
No any search results
You already invited:
0 Answers