diff options
Diffstat (limited to 'Client/ThirdParty')
-rw-r--r-- | Client/ThirdParty/fpm/include/fpm/fixed.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Client/ThirdParty/fpm/include/fpm/fixed.hpp b/Client/ThirdParty/fpm/include/fpm/fixed.hpp index b900dd0..c52116b 100644 --- a/Client/ThirdParty/fpm/include/fpm/fixed.hpp +++ b/Client/ThirdParty/fpm/include/fpm/fixed.hpp @@ -204,6 +204,13 @@ namespace fpm return fixed<B, I, F>(x) += y; } + template <typename B, typename I, unsigned int F, typename T> + constexpr inline fixed<B, I, F> operator+(const fixed<B, I, F>& x, T y) noexcept + { + fixed<B, I, F> r = y; + return fixed<B, I, F>(x) += r; + } + template <typename B, typename I, unsigned int F, typename T, typename std::enable_if<std::is_integral<T>::value>::type* = nullptr> constexpr inline fixed<B, I, F> operator+(const fixed<B, I, F>& x, T y) noexcept { |