commit c3da16116989f443d5cc7ea67d69d01873bb6e66 parent 1abc358a685ffe707673a41445a37cdc92a858d5 Author: d.levin256@gmail.com <d.levin256@gmail.com> Date: Fri, 11 Nov 2022 19:40:53 +0000 complex comparison methods must be const Diffstat:
M | include/kfr/simd/complex_type.hpp | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/kfr/simd/complex_type.hpp b/include/kfr/simd/complex_type.hpp @@ -79,11 +79,11 @@ struct complex KFR_MEM_INTRINSIC constexpr void real(T value) CMT_NOEXCEPT { re = value; } KFR_MEM_INTRINSIC constexpr void imag(T value) CMT_NOEXCEPT { im = value; } - KFR_MEM_INTRINSIC constexpr bool operator==(const complex& other) CMT_NOEXCEPT + KFR_MEM_INTRINSIC constexpr bool operator==(const complex& other) const CMT_NOEXCEPT { return re == other.re && im == other.im; } - KFR_MEM_INTRINSIC constexpr bool operator!=(const complex& other) CMT_NOEXCEPT + KFR_MEM_INTRINSIC constexpr bool operator!=(const complex& other) const CMT_NOEXCEPT { return !operator==(other); }