[shared_ptr] calling shared_from_this from constructor

Hi, A have just get latest version from SVN. And now my code does not work. I found problem in a changed version of shared_ptr and shared_from_this (revision 51485). Now calling shared_from_this in constructor throw's boost::bad_weak_ptr exception. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.

Пюрецкий:
Hi, A have just get latest version from SVN. And now my code does not work. I found problem in a changed version of shared_ptr and shared_from_this (revision 51485). Now calling shared_from_this in constructor throw's boost::bad_weak_ptr exception.
Yes, I reverted the old enable_shared_from_this to make trunk match the release branch. Since the new code hasn't been part of a release I thought that this would be safe. Sorry. I'll try to bring the new code back into the trunk (as enable_shared_from_this2) in a few days.
participants (2)
-
Peter Dimov
-
Пюрецкий