From ad6bc34d62c8e5f44b083eb94e5bc089b43a454b Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Tue, 7 May 2024 13:36:56 -0400 Subject: [PATCH] xo-unit: bugfix: = should be == --- include/xo/unit/scaled_unit.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/xo/unit/scaled_unit.hpp b/include/xo/unit/scaled_unit.hpp index 166acc6e..ac6fd60a 100644 --- a/include/xo/unit/scaled_unit.hpp +++ b/include/xo/unit/scaled_unit.hpp @@ -31,7 +31,7 @@ namespace xo { /** @brief true iff scaled unit can be faithfully represented by a @ref natural_unit **/ constexpr bool is_natural() const { - return (outer_scale_factor_ = OuterScale(1) && (outer_scale_sq_ == 1.0)); + return (outer_scale_factor_ == OuterScale(1) && (outer_scale_sq_ == 1.0)); } public: /* need public members so that a scaled_unit instance can be a non-type template parameter (a structural type) */