From 4fd89120b8c7b7328aa328a89210e5304d76e500 Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Thu, 18 Jul 2024 09:44:45 +0200 Subject: [PATCH] sqr is constexpr --- libsrc/core/utils.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsrc/core/utils.hpp b/libsrc/core/utils.hpp index 323fe67a..a503d53c 100644 --- a/libsrc/core/utils.hpp +++ b/libsrc/core/utils.hpp @@ -182,7 +182,7 @@ namespace ngcore /// square element template - NETGEN_INLINE T sqr (const T a) + NETGEN_INLINE constexpr T sqr (const T a) { return a * a; }