Browse Source

Math: constexpr *is* inline.

mousecapture
Vladimír Vondruš 6 years ago
parent
commit
73f776193d
  1. 2
      src/Magnum/Math/Packing.h

2
src/Magnum/Math/Packing.h

@ -43,7 +43,7 @@ and @ref Magnum::Math::Rad "Rad".
namespace Implementation { namespace Implementation {
template<class T, UnsignedInt bits = sizeof(T)*8> inline constexpr T bitMax() { template<class T, UnsignedInt bits = sizeof(T)*8> constexpr T bitMax() {
return T(typename std::make_unsigned<T>::type(~T{}) >> (sizeof(T)*8 - (std::is_signed<T>::value ? bits - 1 : bits))); return T(typename std::make_unsigned<T>::type(~T{}) >> (sizeof(T)*8 - (std::is_signed<T>::value ? bits - 1 : bits)));
} }

Loading…
Cancel
Save