From bcc11176480f403ab294de24d61bab993ce2fdfd Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 1 Dec 2021 19:30:25 +0800 Subject: *misc --- Client/ThirdParty/fpm/include/fpm/fixed.hpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Client/ThirdParty') 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(x) += y; } + template + constexpr inline fixed operator+(const fixed& x, T y) noexcept + { + fixed r = y; + return fixed(x) += r; + } + template ::value>::type* = nullptr> constexpr inline fixed operator+(const fixed& x, T y) noexcept { -- cgit v1.1-26-g67d0