INT<2> constexpr ctor

This commit is contained in:
Joachim Schoeberl 2022-10-26 16:50:19 +02:00
parent 17803d2d45
commit 95df669656
2 changed files with 7 additions and 6 deletions

View File

@ -58,7 +58,8 @@ namespace ngcore
/// init i[0], i[1] /// init i[0], i[1]
constexpr NETGEN_INLINE INT (T ai1, T ai2) constexpr NETGEN_INLINE INT (T ai1, T ai2)
{ i[0] = ai1; i[1] = ai2; } : i{ai1,ai2} { ; }
// { i[0] = ai1; i[1] = ai2; }
/// init i[0], i[1], i[2] /// init i[0], i[1], i[2]
NETGEN_INLINE INT (T ai1, T ai2, T ai3) NETGEN_INLINE INT (T ai1, T ai2, T ai3)

View File

@ -123,15 +123,15 @@ public:
// [[deprecated("use GetFaces (ElementIndex) -> FlatArray")]] // [[deprecated("use GetFaces (ElementIndex) -> FlatArray")]]
int GetElementFaces (int elnr, int * faces, int * orient) const; int GetElementFaces (int elnr, int * faces, int * orient) const;
[[deprecated("use GetElementEdge instead")]] // [[deprecated("use GetElementEdge instead")]]
int GetElementEdgeOrientation (int elnr, int locedgenr) const; // old style int GetElementEdgeOrientation (int elnr, int locedgenr) const; // old style
[[deprecated("use GetElementEdge instead")]] // [[deprecated("use GetElementEdge instead")]]
int GetElementFaceOrientation (int elnr, int locfacenr) const; // old style int GetElementFaceOrientation (int elnr, int locfacenr) const; // old style
[[deprecated("use GetElementEdge instead")]] // [[deprecated("use GetElementEdge instead")]]
int GetSurfaceElementEdgeOrientation (int elnr, int locedgenr) const; // old style int GetSurfaceElementEdgeOrientation (int elnr, int locedgenr) const; // old style
[[deprecated("use GetElementEdge instead")]] // [[deprecated("use GetElementEdge instead")]]
int GetSurfaceElementFaceOrientation2 (int elnr) const; // old style int GetSurfaceElementFaceOrientation2 (int elnr) const; // old style
[[deprecated("use GetElementEdge instead")]] // [[deprecated("use GetElementEdge instead")]]
int GetSegmentEdgeOrientation (int elnr) const; // old style int GetSegmentEdgeOrientation (int elnr) const; // old style