From c2fa8a9000a612e7046251a7ba94927ef4b37a24 Mon Sep 17 00:00:00 2001 From: Yves Delley Date: Fri, 10 May 2024 21:13:21 +0200 Subject: [PATCH] avoid using a function for the lvalue test --- test/static/quantity_test.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/static/quantity_test.cpp b/test/static/quantity_test.cpp index b8111368..ea375e38 100644 --- a/test/static/quantity_test.cpp +++ b/test/static/quantity_test.cpp @@ -938,10 +938,10 @@ static_assert(is_of_type(isq::length(1 * m)), quant static_assert(is_of_type>(isq::length(1 * m)), quantity>); static_assert(is_of_type>(isq::distance(1 * m)), quantity>); // lvalue references in quantity_cast -inline constexpr quantity to_distance(quantity arg) -{ - return quantity_cast(arg); -} +namespace lvalue_tests { +quantity lvalue_q = 1 * m; +static_assert(is_of_type(lvalue_q), quantity>); +} // namespace lvalue_tests // QuantityOf static_assert(QuantityOf, isq::length>);