[C++-sig] Problems with virtualness and py++
Roman Yakovenko
roman.yakovenko at gmail.com
Mon Sep 21 21:22:42 CEST 2009
On Mon, Sep 21, 2009 at 1:21 PM, Roman Yakovenko
<roman.yakovenko at gmail.com> wrote:
>> There is a small snag still:
>>
>> virtual_const_bindings.cpp:27: virhe: ”result” declared as reference
>> but not initialized
>>
>> This comes from the following piece of code:
>>
>> static boost::python::object default_h( ::B & inst, ::A & x ){
>> C & result;
>> if( dynamic_cast< B_wrapper * >( boost::addressof( inst ) ) ){
>> result = inst.::B::h(x);
>> }
>> else{
>> result = inst.h(x);
>> }
>> typedef bp::return_internal_reference< > call_policies_t;
>> return bp::object( pyplusplus::call_policies::make_object<
>> call_policies_t, ::C & >( result ) );
>> }
>
>
> :-(. I will take a look on it.
I hope it is fixed now:
http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1759&view=rev
A new test case was added.
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
More information about the Cplusplus-sig
mailing list