mirror of
https://github.com/NGSolve/netgen.git
synced 2025-02-04 17:10:33 +05:00
remove convert operator
This commit is contained in:
parent
3c273bf537
commit
9bc9ee8e7d
@ -201,7 +201,7 @@ namespace netgen
|
|||||||
constexpr operator T () const { return i; }
|
constexpr operator T () const { return i; }
|
||||||
explicit constexpr operator T& () { return i; }
|
explicit constexpr operator T& () { return i; }
|
||||||
public:
|
public:
|
||||||
constexpr operator TIndex() const { return TIndex(i); }
|
// constexpr operator TIndex() const { return TIndex(i); }
|
||||||
operator TIndex&() { return static_cast<TIndex&>(*this); }
|
operator TIndex&() { return static_cast<TIndex&>(*this); }
|
||||||
|
|
||||||
TIndex operator++ (int) { TIndex hi{*this}; i++; return hi; }
|
TIndex operator++ (int) { TIndex hi{*this}; i++; return hi; }
|
||||||
@ -250,6 +250,7 @@ namespace netgen
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
using Index::Index;
|
using Index::Index;
|
||||||
|
constexpr PointIndex (Index<int,PointIndex,1> & ind) : Index<int,PointIndex,1>(ind) { }
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user