From 4efbf81814e3672a65596a0a1f687b5d35f78b07 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Fri, 23 Dec 2022 19:16:23 +0100 Subject: [PATCH] docs: another small cleanup of quantity --- src/core/include/units/quantity.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/include/units/quantity.h b/src/core/include/units/quantity.h index de43284e..23db892a 100644 --- a/src/core/include/units/quantity.h +++ b/src/core/include/units/quantity.h @@ -79,7 +79,7 @@ concept invoke_result_of_ = template Rep = double> class quantity { public: - Rep number_; + Rep number_; // needs to be public for a structural type // member types and values static constexpr Reference auto reference = R; @@ -131,7 +131,7 @@ public: template requires quantity_convertible_to_, quantity> - constexpr explicit quantity(const Q& q): quantity(detail::quantity_like_type(quantity_like_traits::number(q))) + constexpr explicit quantity(const Q& q) : quantity(detail::quantity_like_type(quantity_like_traits::number(q))) { }