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

2009-09-17 Thread Pertti Kellomäki
Roman Yakovenko wrote: 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. Ok, here's a distilled code example. Running python dest.pypp && gcc -c -I/usr/include/python2.6 dest_bindings.cpp yields the error

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

2009-09-17 Thread Roman Yakovenko
2009/9/17 Pertti Kellomäki : > Roman Yakovenko wrote: >> >> 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. > > Ok, here's a distilled code example. Running > >  python dest.pypp && gcc -c -I/usr/include/pyth

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

2009-09-17 Thread Pertti Kellomäki
Roman Yakovenko wrote: Okey. You should use "modify_type" function transformation with "remove_const" type traits function. Thanks. This does not quite solve the problem, as remove_const will turn "const A" to "A" but leave "A const &" as it is. I modified remove_const to convert "A const &" t

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

2009-09-17 Thread Roman Yakovenko
2009/9/17 Pertti Kellomäki : > Roman Yakovenko wrote: >> >> Okey. You should use "modify_type" function transformation with >> "remove_const" type traits function. > > Thanks. This does not quite solve the problem, as remove_const > will turn "const A" to "A" but leave "A const &" as it is. Right,

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

2009-09-17 Thread Pertti Kellomäki
Roman Yakovenko wrote: Yes you should create and pass your own function. Ok. Thanks once again for your prompt help! -- Pertti ___ Cplusplus-sig mailing list Cplusplus-sig@python.org http://mail.python.org/mailman/listinfo/cplusplus-sig