From f87a173ccfc7518561cffb42eee712a51e186d87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Sch=C3=B6berl?= Date: Sun, 30 Dec 2018 15:27:48 +0100 Subject: [PATCH] py-bind with multiple inheritance --- libsrc/geom2d/geometry2d.hpp | 2 +- libsrc/geom2d/python_geom2d.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/libsrc/geom2d/geometry2d.hpp b/libsrc/geom2d/geometry2d.hpp index 2aee6ccc..52e7a20e 100644 --- a/libsrc/geom2d/geometry2d.hpp +++ b/libsrc/geom2d/geometry2d.hpp @@ -128,7 +128,7 @@ namespace netgen - class SplineGeometry2d : public NetgenGeometry, public SplineGeometry<2> + class SplineGeometry2d : public SplineGeometry<2>, public NetgenGeometry { protected: Array materials; diff --git a/libsrc/geom2d/python_geom2d.cpp b/libsrc/geom2d/python_geom2d.cpp index 1fc34f99..dc1add41 100644 --- a/libsrc/geom2d/python_geom2d.cpp +++ b/libsrc/geom2d/python_geom2d.cpp @@ -17,7 +17,8 @@ DLL_HEADER void ExportGeom2d(py::module &m) { py::class_> (m, "SplineGeometry", - "a 2d boundary representation geometry model by lines and splines") + "a 2d boundary representation geometry model by lines and splines", + py::multiple_inheritance()) .def(py::init<>()) .def(py::init([](const string& filename) {