30 Jun
2017
30 Jun
'17
12:16 a.m.
On Thu, Jun 29, 2017 at 10:51 PM, niXman via Boost-users < boost-users@lists.boost.org> wrote:
You should inherit the enable_shared_from_this<your session class>, and in async ops in your session class you should use shared_from_this() when start async ops.
Yes, I did.
For monitoring your session you should use map/any_container with weak_ptrs, not shared_ptrs.
Interesting, I haven't thought that, what will be the issues and consequences to use shared_ptrs not weak_ptrs? Thanks for your advice.