xo-unit: bugfix: = should be ==

This commit is contained in:
Roland Conybeare 2024-05-07 13:36:56 -04:00
commit ad6bc34d62

View file

@ -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) */