From 88af66d5a05071a4b820bfca3763da05326b1c14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Sch=C3=B6berl?= Date: Wed, 7 Aug 2019 18:29:21 +0200 Subject: [PATCH] try with ctor --- libsrc/meshing/meshtype.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libsrc/meshing/meshtype.hpp b/libsrc/meshing/meshtype.hpp index aa6eb1d3..e4cdda3f 100644 --- a/libsrc/meshing/meshtype.hpp +++ b/libsrc/meshing/meshtype.hpp @@ -153,7 +153,7 @@ namespace netgen { int i; public: - class t_invalid { }; + class t_invalid { public: constexpr t_invalid() = default; }; static constexpr t_invalid INVALID; PointIndex () = default; @@ -170,7 +170,7 @@ namespace netgen // throw Exception("illegal PointIndex, use PointIndex::INVALID instead"); #endif } - PointIndex (t_invalid inv) : i(PointIndex::BASE-1) { ; } + constexpr PointIndex (t_invalid inv) : i(PointIndex::BASE-1) { ; } // PointIndex & operator= (const PointIndex &ai) { i = ai.i; return *this; } operator int () const { return i; } PointIndex operator++ (int) { PointIndex hi(*this); i++; return hi; }