diff options
author | Lioncash <mathew1800@gmail.com> | 2022-10-18 21:33:47 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2022-10-18 22:06:50 +0200 |
commit | b6119a55f9bbc306593afccc0820165d74c2fadc (patch) | |
tree | 8f063213daf36ab22c4cf09ebc623fde10cb42ad /src | |
parent | fixed_point: Mark std::swap and move constructor as noexcept (diff) | |
download | yuzu-b6119a55f9bbc306593afccc0820165d74c2fadc.tar yuzu-b6119a55f9bbc306593afccc0820165d74c2fadc.tar.gz yuzu-b6119a55f9bbc306593afccc0820165d74c2fadc.tar.bz2 yuzu-b6119a55f9bbc306593afccc0820165d74c2fadc.tar.lz yuzu-b6119a55f9bbc306593afccc0820165d74c2fadc.tar.xz yuzu-b6119a55f9bbc306593afccc0820165d74c2fadc.tar.zst yuzu-b6119a55f9bbc306593afccc0820165d74c2fadc.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/common/fixed_point.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/common/fixed_point.h b/src/common/fixed_point.h index ad0d71e50..5aafa273b 100644 --- a/src/common/fixed_point.h +++ b/src/common/fixed_point.h @@ -268,9 +268,12 @@ public: public: // constructors FixedPoint() = default; - FixedPoint(const FixedPoint&) = default; - FixedPoint(FixedPoint&&) noexcept = default; - FixedPoint& operator=(const FixedPoint&) = default; + + constexpr FixedPoint(const FixedPoint&) = default; + constexpr FixedPoint& operator=(const FixedPoint&) = default; + + constexpr FixedPoint(FixedPoint&&) noexcept = default; + constexpr FixedPoint& operator=(FixedPoint&&) noexcept = default; template <IsArithmetic Number> constexpr FixedPoint(Number n) : data_(static_cast<base_type>(n * one)) {} |