[C++-sig] [Boost.Python] shared_ptr<const T>

Roman Yakovenko roman.yakovenko at gmail.com
Fri Nov 24 22:02:25 CET 2006


On 11/23/06, David Abrahams <dave at boost-consulting.com> wrote:
> Your overload of get_pointer is clever but unfortunately evil.

Yes I know.

>How about submitting a
> patch to Boost.Python that actually fixes the problem?

I will try, but I am not sure I understand the scope of the problem/solution.
It is pretty easy to fix the pointer_holder::holds and
pointer_holder_back_reference::holds
member functions. I did that and the patch is attached. Is this is all
that should be done?

-- 
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pointer_holder.hpp.patch
Type: text/x-patch
Size: 3034 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20061124/58121e15/attachment.bin>


More information about the Cplusplus-sig mailing list