From eea770a2e1def45bb0438bb6107059c9a2e8fead Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Mon, 4 Jan 2021 09:45:10 +0100 Subject: [PATCH] test: `#if COMP_GCC >= 10` removed Resolves #197 --- test/unit_test/static/unit_test.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/test/unit_test/static/unit_test.cpp b/test/unit_test/static/unit_test.cpp index 3c5d0891..cbbff548 100644 --- a/test/unit_test/static/unit_test.cpp +++ b/test/unit_test/static/unit_test.cpp @@ -43,9 +43,7 @@ struct dim_time : base_dimension<"time", second> {}; struct kelvin : named_unit {}; -#if COMP_GCC >= 10 static_assert([](P) { return !requires { typename prefixed_unit; }; }(si::kilo{})); // no prefix allowed -#endif struct metre_per_second : unit {}; struct dim_speed : derived_dimension, units::exponent> {}; @@ -57,9 +55,7 @@ static_assert(compare>, foot>); static_assert(compare>, kilometre_per_hour>); -#if COMP_GCC >= 10 static_assert([]() { return !requires { typename scaled_unit; }; }.template operator()()); // negative unit ratio -#endif static_assert(centimetre::symbol == "cm"); static_assert(kilometre::symbol == "km");