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