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) { } };