26 May
2007
26 May
'07
5:33 p.m.
Yaoltzin Gomez wrote:
Thank you for you time to answer. Allthough your answer has helped me, I still have the bad_weak_ptr exception. Every time I try to access the shared_from_this pointer from inside Base member functions, I get that exception. What I want to know is how can I access safely an without errors, the shared_from_this pointer inside my Base class, when I create a smart pointer instance of my Derived class.
Can you post a complete example program that demonstrates the problem?