mirror of
https://github.com/NGSolve/netgen.git
synced 2025-02-05 01:14:16 +05:00
try with ctor
This commit is contained in:
parent
1e701d6aac
commit
88af66d5a0
@ -153,7 +153,7 @@ namespace netgen
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
public:
|
public:
|
||||||
class t_invalid { };
|
class t_invalid { public: constexpr t_invalid() = default; };
|
||||||
static constexpr t_invalid INVALID;
|
static constexpr t_invalid INVALID;
|
||||||
|
|
||||||
PointIndex () = default;
|
PointIndex () = default;
|
||||||
@ -170,7 +170,7 @@ namespace netgen
|
|||||||
// throw Exception("illegal PointIndex, use PointIndex::INVALID instead");
|
// throw Exception("illegal PointIndex, use PointIndex::INVALID instead");
|
||||||
#endif
|
#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; }
|
// PointIndex & operator= (const PointIndex &ai) { i = ai.i; return *this; }
|
||||||
operator int () const { return i; }
|
operator int () const { return i; }
|
||||||
PointIndex operator++ (int) { PointIndex hi(*this); i++; return hi; }
|
PointIndex operator++ (int) { PointIndex hi(*this); i++; return hi; }
|
||||||
|
Loading…
Reference in New Issue
Block a user