Boost logo

Boost Users :

Subject: Re: [Boost-users] shared_from_this - derived classes (yes, I googled)
From: Igor R (boost.lists_at_[hidden])
Date: 2011-10-01 12:30:44


<...>
> I read on google that you can only use shared_from_this on ONE class type in a
> class hierarchy. I did not understand the details of why.

You probably mean that you should inherit enable_shared_from_this only once.
But then you can use shared_from_this wherever you wish.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net