From 2b75d091e9b6978831dd436bca640bcff277a264 Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Tue, 31 Dec 2024 13:31:31 +0100 Subject: [PATCH] inheriated ctor --- libsrc/meshing/meshtype.hpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/libsrc/meshing/meshtype.hpp b/libsrc/meshing/meshtype.hpp index 2bbd8659..5c2c740a 100644 --- a/libsrc/meshing/meshtype.hpp +++ b/libsrc/meshing/meshtype.hpp @@ -167,7 +167,7 @@ namespace netgen Index & operator= (Index&&) = default; // private: - constexpr Index (int ai) : i(ai) + constexpr Index (T ai) : i(ai) { #ifdef DEBUG if (ai < Base) @@ -446,7 +446,12 @@ namespace netgen class ElementIndex : public Index { public: - using Index::Index; + using Index::Index; + /* + constexpr ElementIndex () = default; + constexpr ElementIndex (int i) : Index(i) { } + constexpr ElementIndex (Index & ind) : Index(ind) { } + */ }; inline istream & operator>> (istream & ist, ElementIndex & pi) @@ -472,6 +477,7 @@ namespace netgen { public: using Index::Index; + constexpr SurfaceElementIndex (Index & ind) : Index(ind) { } };