From dc0b3857dac9cdd649b4825f4f3990de95aaf954 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Sat, 2 Sep 2023 20:01:12 +0200 Subject: [PATCH] refactor(example): one more case for `zero` found in examples --- example/include/geographic.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/include/geographic.h b/example/include/geographic.h index 3ea77c0bc..8499dc88d 100644 --- a/example/include/geographic.h +++ b/example/include/geographic.h @@ -74,7 +74,7 @@ using longitude = template std::basic_ostream& operator<<(std::basic_ostream& os, const latitude& lat) { - if (lat.numerical_value() > 0) + if (lat > mp_units::zero) return os << "N" << lat.numerical_value(); else return os << "S" << -lat.numerical_value(); @@ -83,7 +83,7 @@ std::basic_ostream& operator<<(std::basic_ostream& template std::basic_ostream& operator<<(std::basic_ostream& os, const longitude& lon) { - if (lon.numerical_value() > 0) + if (lon > mp_units::zero) return os << "E" << lon.numerical_value(); else return os << "W" << -lon.numerical_value();