mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-27 13:20:34 +05:00
inheriated ctor
This commit is contained in:
parent
9bc9ee8e7d
commit
2b75d091e9
@ -167,7 +167,7 @@ namespace netgen
|
|||||||
Index & operator= (Index&&) = default;
|
Index & operator= (Index&&) = default;
|
||||||
|
|
||||||
// private:
|
// private:
|
||||||
constexpr Index (int ai) : i(ai)
|
constexpr Index (T ai) : i(ai)
|
||||||
{
|
{
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
if (ai < Base)
|
if (ai < Base)
|
||||||
@ -446,7 +446,12 @@ namespace netgen
|
|||||||
class ElementIndex : public Index<int,ElementIndex,0>
|
class ElementIndex : public Index<int,ElementIndex,0>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
using Index::Index;
|
using Index<int,ElementIndex,0>::Index;
|
||||||
|
/*
|
||||||
|
constexpr ElementIndex () = default;
|
||||||
|
constexpr ElementIndex (int i) : Index<int,ElementIndex,0>(i) { }
|
||||||
|
constexpr ElementIndex (Index<int,ElementIndex,0> & ind) : Index<int,ElementIndex,0>(ind) { }
|
||||||
|
*/
|
||||||
};
|
};
|
||||||
|
|
||||||
inline istream & operator>> (istream & ist, ElementIndex & pi)
|
inline istream & operator>> (istream & ist, ElementIndex & pi)
|
||||||
@ -472,6 +477,7 @@ namespace netgen
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
using Index::Index;
|
using Index::Index;
|
||||||
|
constexpr SurfaceElementIndex (Index<int,SurfaceElementIndex,0> & ind) : Index<int,SurfaceElementIndex,0>(ind) { }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user