From ffa0f321f957f79f4bd7d3b237abd1f40e9b4ec0 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Fri, 6 May 2022 10:00:39 +0200 Subject: [PATCH] fix: shadowing compilation errors on MSVC fixed --- test/unit_test/static/quantity_test.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/unit_test/static/quantity_test.cpp b/test/unit_test/static/quantity_test.cpp index 0f810ccf..fff7d9e4 100644 --- a/test/unit_test/static/quantity_test.cpp +++ b/test/unit_test/static/quantity_test.cpp @@ -275,11 +275,11 @@ struct derived_quantity : quantity static_assert(detail::is_quantity, "NTTP type description">>); constexpr isq::Length auto get_length_derived_quantity() noexcept { - derived_quantity, "NTTP type description"> a{}; - a += 1_q_m; - a = a + 1_q_m; - a *= 0.5; - return a; + derived_quantity, "NTTP type description"> dist{}; + dist += 1_q_m; + dist = dist + 1_q_m; + dist *= 0.5; + return dist; } static_assert(get_length_derived_quantity() == 1_q_m);