diff --git a/include/xo/unit/quantity.hpp b/include/xo/unit/quantity.hpp index 9a86baba..38fa44d8 100644 --- a/include/xo/unit/quantity.hpp +++ b/include/xo/unit/quantity.hpp @@ -77,6 +77,12 @@ namespace xo { return promoter::promote(x); } + template + constexpr quantity with_unit() const { return *this; } + + template + constexpr quantity with_repr() const { return quantity::promote(scale_); } + template auto multiply(Quantity2 y) const { //constexpr bool c_debug_flag = false;