Click here to Skip to main content
15,885,546 members

Comments by Priyanka Sabharwal81 (Top 1 by date)

Priyanka Sabharwal81 17-Mar-16 8:38am View    
Thanks Philippe. But if every body understand every thing, then there would not be a question forum ever!!! The link that you had send tells how to use enable_shared_from_this and why to use it. How and why, does not answers my question. My concern is that the syntax that I wrote to bypass the use of enable_shared_from_this is not a complex one. Rather I felt that enable_shared_from_this is adding complexity. Is there any other scenario which I am missing that can only be resolved by using enable_shared_from_this and not the alternative that I wrote.
I know every problem has more than one solution, but we prefer the use of the easy one. Easy means that is more readable and easily writable.