xo-unit: bugfix: = should be ==
This commit is contained in:
parent
ee083cda00
commit
ad6bc34d62
1 changed files with 1 additions and 1 deletions
|
|
@ -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) */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue