grasph / wrapit

Automatization of C++--Julia wrapper generation
MIT License
100 stars 12 forks source link

Need to support templated base classes #7

Open peremato opened 1 year ago

peremato commented 1 year ago

I encountered two cases of a class inheriting from a templated base class that is blocking the progress in Geant4.jl.

To reproduce the last error the following config file will do it:

include_dirs        = [ "/cvmfs/sft.cern.ch/lcg/views/LCG_102/x86_64-centos7-gcc11-opt/include" ]

input               = [ "CLHEP/Geometry/Transform3D.h",
                        "CLHEP/Geometry/Point3D.h",
                      ]
grasph commented 1 year ago

Hello Pere,

I was not able to reproduce the issue with HepGeom::Point3D<double>. I will add the support for inheritance from templated class.

Philippe.

xgdgsc commented 11 months ago

I' ve used https://gitlab.kitware.com/autopybind11/autopybind11 to generate some template based code. Would it be easier to reuse some code from there to generate for julia instead?