remove convert operator

This commit is contained in:
Joachim Schoeberl 2024-12-31 13:18:03 +01:00
parent 3c273bf537
commit 9bc9ee8e7d

View File

@ -201,7 +201,7 @@ namespace netgen
constexpr operator T () const { return i; }
explicit constexpr operator T& () { return i; }
public:
constexpr operator TIndex() const { return TIndex(i); }
// constexpr operator TIndex() const { return TIndex(i); }
operator TIndex&() { return static_cast<TIndex&>(*this); }
TIndex operator++ (int) { TIndex hi{*this}; i++; return hi; }
@ -250,6 +250,7 @@ namespace netgen
{
public:
using Index::Index;
constexpr PointIndex (Index<int,PointIndex,1> & ind) : Index<int,PointIndex,1>(ind) { }
};
}