From d75377ccaf0ceb5a6e8d12bfecad6eb3320e956e Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Thu, 11 Apr 2019 17:24:17 +0100 Subject: [PATCH] std::decay_t replaced with std::remove_cvref_t --- src/include/units/quantity.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/include/units/quantity.h b/src/include/units/quantity.h index 5ec07c05..6c6cd8d2 100644 --- a/src/include/units/quantity.h +++ b/src/include/units/quantity.h @@ -294,7 +294,7 @@ namespace units { const quantity& q) requires (!Quantity) { - Expects(q != std::decay_t(0)); + Expects(q != std::remove_cvref_t(0)); using dim = dim_invert_t; using common_rep = decltype(v / q.count()); @@ -320,7 +320,7 @@ namespace units { [[nodiscard]] constexpr Scalar operator/(const quantity& lhs, const quantity& rhs) { - Expects(rhs != std::decay_t(0)); + Expects(rhs != std::remove_cvref_t(0)); using common_rep = decltype(lhs.count() / rhs.count()); using cq = common_quantity_t, quantity, common_rep>; @@ -333,7 +333,7 @@ namespace units { requires treat_as_floating_point || (std::ratio_divide::den == 1) { - Expects(rhs != std::decay_t(0)); + Expects(rhs != std::remove_cvref_t(0)); using common_rep = decltype(lhs.count() / rhs.count()); using dim = dimension_divide_t;