diff --git a/include/xo/unit/Quantity.hpp b/include/xo/unit/Quantity.hpp index 97e1bb69..2ca43ecb 100644 --- a/include/xo/unit/Quantity.hpp +++ b/include/xo/unit/Quantity.hpp @@ -214,12 +214,14 @@ namespace xo { return *this; } + constexpr nu_abbrev_type abbrev() const { return unit_.abbrev(); } + private: /** @brief quantity represents this multiple of a unit amount **/ Repr scale_ = Repr{}; /** @brief unit for this quantity **/ natural_unit unit_; - }; /*Quantity2*/ + }; /*Quantity*/ /** note: won't have constexpr result until c++26 (when ::sqrt(), ::pow() are constexpr) **/