From ae479775b8ed7ba886ae2a29df41c81178ca405a Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Tue, 7 May 2024 10:44:37 -0400 Subject: [PATCH] xo-unit: + 365-day volatility factory --- include/xo/unit/quantity.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/xo/unit/quantity.hpp b/include/xo/unit/quantity.hpp index c9676797..4855c0ee 100644 --- a/include/xo/unit/quantity.hpp +++ b/include/xo/unit/quantity.hpp @@ -530,7 +530,9 @@ namespace xo { inline constexpr auto volatility_250d(Repr x) { return quantity(x); } template inline constexpr auto volatility_360d(Repr x) { return quantity(x); } - } + template + inline constexpr auto volatility_365d(Repr x) { return quantity(x); } + } /*namespace qty*/ /* reminder: see [quantity_ops.hpp] for operator* etc */ } /*namespace qty*/