diff --git a/include/xo/unit/quantity.hpp b/include/xo/unit/quantity.hpp index 5d549b9c..e986b95f 100644 --- a/include/xo/unit/quantity.hpp +++ b/include/xo/unit/quantity.hpp @@ -974,6 +974,14 @@ namespace xo { } /*namespace qty*/ + namespace qty { + // ----- currency ----- + + /** create quantity representing @p x units of currency, with compile-time unit representation **/ + template + inline constexpr auto currency(Repr x) { return quantity(x); } + } + namespace qty { // ----- volatility -----