diff options
author | Andrey Lihatskiy <alihatskiy@productengine.com> | 2025-04-17 23:35:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-17 23:35:44 +0300 |
commit | c7ebde4ec9d3909c3c2f6503dc9096406297f26d (patch) | |
tree | b2aadd1082e28b92892755f6b2dfb64edc098ad4 /indra/llcommon/stdtypes.h | |
parent | 293462d8ff6dcb00ec501d026a6589d869a2f846 (diff) | |
parent | 4c6afbbb75076e9fd34ee5707a02195c4e2f7223 (diff) |
Merge pull request #3927 from Ansariel/develop-math-improvements
Add a bunch of old and new math improvements
Diffstat (limited to 'indra/llcommon/stdtypes.h')
-rw-r--r-- | indra/llcommon/stdtypes.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/llcommon/stdtypes.h b/indra/llcommon/stdtypes.h index 28e50b3d21..f1e4c2bc78 100644 --- a/indra/llcommon/stdtypes.h +++ b/indra/llcommon/stdtypes.h @@ -164,14 +164,14 @@ private: FROM mValue; public: - narrow(FROM value): mValue(value) {} + constexpr narrow(FROM value): mValue(value) {} /*---------------------- Narrowing unsigned to signed ----------------------*/ template <typename TO, typename std::enable_if<std::is_unsigned<FROM>::value && std::is_signed<TO>::value, bool>::type = true> - inline + constexpr operator TO() const { // The reason we skip the @@ -189,7 +189,7 @@ public: typename std::enable_if<! (std::is_unsigned<FROM>::value && std::is_signed<TO>::value), bool>::type = true> - inline + constexpr operator TO() const { // two different assert()s so we can tell which condition failed |