mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-27 14:20:34 +05:00
sqr is constexpr
This commit is contained in:
parent
ad99e5fdea
commit
4fd89120b8
@ -182,7 +182,7 @@ namespace ngcore
|
|||||||
|
|
||||||
/// square element
|
/// square element
|
||||||
template <class T>
|
template <class T>
|
||||||
NETGEN_INLINE T sqr (const T a)
|
NETGEN_INLINE constexpr T sqr (const T a)
|
||||||
{
|
{
|
||||||
return a * a;
|
return a * a;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user