[C++-sig] Py++ and protected destructors

2009-09-16 Thread Pertti Kellomäki

Hi,

Just a quick check. I am using py++, and I've run into the problem
with protected destructors. Is the following advice still valid?


--
Pertti

___
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig


Re: [C++-sig] Py++ and protected destructors

2009-09-16 Thread Roman Yakovenko
2009/9/16 Pertti Kellomäki :
> Hi,
>
> Just a quick check. I am using py++, and I've run into the problem
> with protected destructors. Is the following advice still valid?

It should be, but today there is a better way to solve this problem -
Function Transformation:
http://language-binding.net/pyplusplus/documentation/functions/transformation/modify_type.html?highlight=function%20transformation

I just checked, "modify type" transformation doesn't generate optimal
code for the following conversion: from "const T&" to "T&".

Before I modified the code, I suggest you to submit a small working
example which shows the problem, so we can solve the right problem.

-- 
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
___
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig


Re: [C++-sig] Py++ and protected destructors

2009-09-16 Thread Pertti Kellomäki

Hi Roman,


Before I modified the code, I suggest you to submit a small working
example which shows the problem, so we can solve the right problem.


Sounds good, I'll do some code distillation tomorrow.
--
Pertti

___
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig