3 Jul
2017
3 Jul
'17
6:33 p.m.
On Thu, 2017-06-29 at 15:51 +0300, niXman via Boost-users wrote:
For monitoring your session you should use map/any_container with weak_ptrs, not shared_ptrs.
Especially with networking code, I'd refrain from this. Though it offers a lot of loose coupling, it makes readability difficult. For session bring-down, I always prefer explicit "unregister()" style messages between objects. That way, the "disconnect behaviour" is explicitly embedded in code. IMHO, of course :D -- Joe Steeve HiPro IT Solutions Private Limited http://www.hipro.co.in/