Any news on this issue? Will this patch get into Boost 1.35?<br><br> Thanks,<br>Edson<br><br><div class="gmail_quote">On Wed, Feb 13, 2008 at 5:27 PM, Ralf W. Grosse-Kunstleve <<a href="mailto:rwgk@yahoo.com">rwgk@yahoo.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Chad,<br>
<br>
Could you at least ask Peter Dimov if he thinks the<br>
dont_enable_shared_from_this patch could be generally useful?<br>
Maybe he's OK adding it, then it wouldn't be a big deal<br>
fixing Boost.Python, which would probably prevent a lot of<br>
confusion and lost time in the future.<br>
<br>
<a href="http://www.boost.org/people/peter_dimov.htm" target="_blank">http://www.boost.org/people/peter_dimov.htm</a><br>
p-d-i-m-o-v-at-m-m-l-t-d-dot-n-e-t<br>
<div class="Ih2E3d"><br>
Ralf<br>
<br>
----- Original Message ----<br>
From: Chad Austin <<a href="mailto:chad@imvu.com">chad@imvu.com</a>><br>
</div><div><div></div><div class="Wj3C7c">To: Development of Python/C++ integration <<a href="mailto:c++-sig@python.org">c++-sig@python.org</a>><br>
Sent: Monday, February 11, 2008 10:10:31 PM<br>
Subject: Re: [C++-sig] Bug and patch for boost.python with enable_shared_from_this<br>
<br>
There probably is a way to prevent boost.python from creating<br>
shared_ptrs with a null deleter like it does, but it would require far<br>
more knowledge than I have. :)<br>
<br>
I agree that it would be a better fix, though.<br>
<br>
On 2/11/08, Ralf W. Grosse-Kunstleve <<a href="mailto:rwgk@yahoo.com">rwgk@yahoo.com</a>> wrote:<br>
><br>
><br>
><br>
> Thanks for the patch! I'd love to check this in for you, but for the<br>
> change in shared_ptr.hpp you'll need Peter Dimov's approval, and the<br>
> shared_ptr documentation would have to be updated. Also, your reproducer<br>
> should be turned into a unit test (in boost/libs/python/test).<br>
><br>
> Is there any chance that the shared_ptr patch could somehow be avoided?<br>
><br>
> Ralf<br>
><br>
><br>
><br>
> ----- Original Message ----<br>
> From: Chad Austin <<a href="mailto:chad@imvu.com">chad@imvu.com</a>><br>
> To: <a href="mailto:c++-sig@python.org">c++-sig@python.org</a><br>
> Sent: Sunday, February 10, 2008 5:14:45 PM<br>
> Subject: [C++-sig] Bug and patch for boost.python with enable_shared_from_this<br>
><br>
> Hi all,<br>
><br>
> A month ago or so we discovered a bug in Boost.Python that manifests when using enable_shared_from_this. Here is a test case that demonstrates the bug:<br>
><br>
> ...<br></div></div></blockquote></div><br>