From 73f776193d54b7faba0c27c880a0bb2e467758d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 28 Jan 2020 17:59:12 +0100 Subject: [PATCH] Math: constexpr *is* inline. --- src/Magnum/Math/Packing.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Magnum/Math/Packing.h b/src/Magnum/Math/Packing.h index 61a2d0d27..7ef6e4076 100644 --- a/src/Magnum/Math/Packing.h +++ b/src/Magnum/Math/Packing.h @@ -43,7 +43,7 @@ and @ref Magnum::Math::Rad "Rad". namespace Implementation { -template inline constexpr T bitMax() { +template constexpr T bitMax() { return T(typename std::make_unsigned::type(~T{}) >> (sizeof(T)*8 - (std::is_signed::value ? bits - 1 : bits))); }