diff --git a/include/xo/unit/quantity.hpp b/include/xo/unit/quantity.hpp index be93f8c7..7b9b804c 100644 --- a/include/xo/unit/quantity.hpp +++ b/include/xo/unit/quantity.hpp @@ -43,7 +43,13 @@ namespace xo { // unit_qty // zero_qty - // reciprocal + + constexpr + auto reciprocal() const { + return quantity(1.0 / scale_); + } template constexpr