[C++-sig] Py++ Error for function operator *()

Roman Yakovenko roman.yakovenko at gmail.com
Sun Jun 10 22:03:51 CEST 2007


On 6/7/07, Haridev, Meghana <mharidev at qualcomm.com> wrote:
> When I moved from Py++ 0.8.5 to Py++ 0.9.0, Py++ fails for the following
> function declaration during the module_builder's build_code_creator()
> phase:
>
> operator * (const ACE_Time_Value &tv, double d)
> {
>    //.....
> }
>
> Here's the Error message:
>
>     self.moduleBuilder.build_code_creator(self.moduleName,
> create_casting_constructor=flag_casting_constr)
>   File
> "/opt/data/BTBLD_rhine_1080/thirdParty/lib/python2.4/site-packages/pyplu
> splus/module_builder/builder.py", line 247, in build_code_creator
>     self.__code_creator = creator.create()
>   File
> "/opt/or-tree/mharidev/thirdParty/lib/python2.4/site-packages/pyplusplus
> /module_creator/creator.py", line 315, in create
>     self._adopt_free_operator( operator )
>   File
> "/opt/or-tree/mharidev/thirdParty/lib/python2.4/site-packages/pyplusplus
> /module_creator/creator.py", line 185, in _adopt_free_operator
>     assert isinstance( arg_type, declarations.declarated_t )
> AssertionError

Hi. I tried to reproduce the bug, but failed.

Here is the link to test case:
http://pygccxml.svn.sourceforge.net/viewvc/pygccxml/pyplusplus_dev/unittests/data/free_operators_to_be_exported.hpp?revision=1051&view=markup

I am testing the current version, but it is not that different from the 0.9.0.

Can you modify the test to reproduce the bug? If not you can send me
privately gccxml generated file and the Py++ script.


-- 
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/



More information about the Cplusplus-sig mailing list