<div dir="ltr">Hi Stefan,<div><br></div><div> I updated my code so it now use '<span style="font-size:12.8000001907349px">boost::shared_ptr' class while specifying the held-type and i got exactly the same errors (i guess boost did recognize class even in different namespace).</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px"> Any other theories of what could be wrong? Could it be that Python in some cases tries to manage memory directly, disregarding SP layer?</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px"> Thanks,</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">Ernie.</span></div><div> </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 10, 2015 at 3:55 PM, Ernie Lee <span dir="ltr"><<a href="mailto:tr.ernie.l@gmail.com" target="_blank">tr.ernie.l@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"> Thank you for looking this up Stefan! It turned out that we actually using boost::shared_ptr but in rather non-straight-forward way: it got pull in to our own namespace so in the end Boost::Python::class_ is 'called' with held-type set to a formally different type name. I will see if setting held-type to boost::shared_ptr fix this.<div><br></div><div> Best,</div><div><br></div><div>Ernie.</div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 10, 2015 at 9:17 AM, Stefan Seefeld <span dir="ltr"><<a href="mailto:stefan@seefeld.name" target="_blank">stefan@seefeld.name</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Ernie,<br>
<br>
it appears what you are seeing is the fact that boost.python only<br>
supports boost::shared_ptr, but not std::shared_ptr. (See<br>
<a href="https://svn.boost.org/trac/boost/ticket/6545" target="_blank">https://svn.boost.org/trac/boost/ticket/6545</a>). Is it possible for you to<br>
switch to Boost's shared_ptr, at least for the Python bindings ? Yes, we<br>
need to fix this urgently... :-(<br>
<span><font color="#888888"><br>
Stefan<br>
<br>
<br>
--<br>
<br>
...ich hab' noch einen Koffer in Berlin...<br>
<br>
_______________________________________________<br>
Cplusplus-sig mailing list<br>
<a href="mailto:Cplusplus-sig@python.org" target="_blank">Cplusplus-sig@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/cplusplus-sig" target="_blank">https://mail.python.org/mailman/listinfo/cplusplus-sig</a><br>
</font></span></blockquote></div><br></div>
</div></div></blockquote></div><br></div>