From a39fa198c8c3fcce8f4d1e57be1dfe50a755f7f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 30 Jan 2013 17:03:41 +0100 Subject: [PATCH] Math: removed inappropriate `constexpr` from operator!=() Method calling another method that will possibly be done via SIMD in the future cannot be constexpr. --- src/Math/RectangularMatrix.h | 2 +- src/Math/Vector.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Math/RectangularMatrix.h b/src/Math/RectangularMatrix.h index 56c65e66d..b7a2b846e 100644 --- a/src/Math/RectangularMatrix.h +++ b/src/Math/RectangularMatrix.h @@ -161,7 +161,7 @@ template class RectangularMatrix { * @see Vector::operator<(), Vector::operator<=(), Vector::operator>=(), * Vector::operator>() */ - inline constexpr bool operator!=(const RectangularMatrix& other) const { + inline bool operator!=(const RectangularMatrix& other) const { return !operator==(other); } diff --git a/src/Math/Vector.h b/src/Math/Vector.h index 97568a4cf..4be582d1f 100644 --- a/src/Math/Vector.h +++ b/src/Math/Vector.h @@ -197,7 +197,7 @@ template class Vector { } /** @brief Non-equality comparison */ - inline constexpr bool operator!=(const Vector& other) const { + inline bool operator!=(const Vector& other) const { return !operator==(other); }