From 6033f962679c69cdd0a3613993972183e817218b Mon Sep 17 00:00:00 2001 From: Chip Hogg Date: Sat, 8 Jan 2022 14:03:52 -0500 Subject: [PATCH] Enable implicit ratio construction --- src/core/include/units/ratio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/include/units/ratio.h b/src/core/include/units/ratio.h index 923f2355..caf2571f 100644 --- a/src/core/include/units/ratio.h +++ b/src/core/include/units/ratio.h @@ -52,7 +52,7 @@ struct ratio { std::intmax_t den; std::intmax_t exp; - constexpr explicit ratio(std::intmax_t n, std::intmax_t d = 1, std::intmax_t e = 0): num(n), den(d), exp(e) + constexpr explicit(false) ratio(std::intmax_t n, std::intmax_t d = 1, std::intmax_t e = 0): num(n), den(d), exp(e) { gsl_Expects(den != 0); detail::normalize(num, den, exp);