Commit 8cd4fc31 authored by Uwe Woessner's avatar Uwe Woessner
Browse files

methods which are not const can't be declared constexpr


Signed-off-by: Uwe Woessner's avatarhpcwoess <woessner@hlrs.de>
parent c1bf2ac8
......@@ -201,7 +201,7 @@ public:
*
* \return true if vectors are considered equal, false otherwise
*/
constexpr bool operator==(const Vector2d &in) const noexcept
bool operator==(const Vector2d &in) const noexcept
{
return (std::abs(x - in.x) < EPSILON) &&
(std::abs(y - in.y) < EPSILON);
......@@ -214,7 +214,7 @@ public:
*
* \return false if vectors are considered equal, true otherwise
*/
constexpr bool operator!=(const Vector2d &in) const noexcept
bool operator!=(const Vector2d &in) const noexcept
{
return !operator==(in);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment