You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to finish the h5 serialization of the cthyb solver and I think I am hitting a bug in c++2py. When wrapping a class using the -p flag c++2py does not automatically wrap the return types of the methods.
when wrapping this with c++2py wrap_return.hpp -p --only="class_with_method" one gets
Welcome to C++2py
Parsing the C++ file (may take a few seconds) ...
... done.
Analysing dependencies
Wrapping classes:
class_with_method
Generating wrap_return_desc.py
Class class_with_method : transforming to property :
get_data
i.e. the return_struct_t is not wrapped and this causes a compiler error when trying to compile the wrapper.
Best, H
The text was updated successfully, but these errors were encountered:
HugoStrand
changed the title
c++2py wiht -p (property method) does not wrap return types
c++2py with -p (property method) does not wrap return types
Feb 23, 2018
This problem also arise in cthyb where the wrapping still is not automatic since the types given as arguments to methods of the solver_core class are not in the list of detected dependencies. Hence, cpp2py does not add the required modules
Dear Olivier,
I am trying to finish the h5 serialization of the cthyb solver and I think I am hitting a bug in
c++2py
. When wrapping a class using the-p
flagc++2py
does not automatically wrap the return types of the methods.Here is a minimal example:
when wrapping this with
c++2py wrap_return.hpp -p --only="class_with_method"
one getsi.e. the
return_struct_t
is not wrapped and this causes a compiler error when trying to compile the wrapper.Best, H
The text was updated successfully, but these errors were encountered: