From 65e1c2afd400c44a241cb509ec082ff940544cf0 Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Sat, 27 Apr 2024 11:07:55 -0400 Subject: [PATCH] xo-unit: bugfix: ratio.to<> -> ratio.convert_to<> --- include/xo/unit/Quantity.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/xo/unit/Quantity.hpp b/include/xo/unit/Quantity.hpp index d3bed13c..c46552ea 100644 --- a/include/xo/unit/Quantity.hpp +++ b/include/xo/unit/Quantity.hpp @@ -149,7 +149,7 @@ namespace xo { if (rr.natural_unit_.is_dimensionless()) { r_repr_type r_scale = (static_cast(x.scale()) + (::sqrt(rr.outer_scale_sq_) - * rr.outer_scale_factor_.template to() + * rr.outer_scale_factor_.template convert_to() * static_cast(y.scale()))); return Quantity(r_scale, x.unit_.template to_repr()); @@ -176,7 +176,7 @@ namespace xo { if (rr.natural_unit_.is_dimensionless()) { r_repr_type r_scale = (static_cast(x.scale()) - (::sqrt(rr.outer_scale_sq_) - * rr.outer_scale_factor_.template to() + * rr.outer_scale_factor_.template convert_to() * static_cast(y.scale()))); return Quantity(r_scale, x.unit_.template to_repr());