diff --git a/test/unit_test/static/unit_test.cpp b/test/unit_test/static/unit_test.cpp index 23ca50d6..f13d0ac6 100644 --- a/test/unit_test/static/unit_test.cpp +++ b/test/unit_test/static/unit_test.cpp @@ -41,9 +41,8 @@ struct dim_time : base_dimension<"time", second> {}; struct kelvin : named_unit {}; #if COMP_MSVC || COMP_GCC >= 10 -static_assert([]() { return !requires { typename prefixed_unit; }; }.template operator()()); // negative unit ratio +static_assert([](P) { return !requires { typename prefixed_unit; }; }(si::kilo{})); // negative unit ratio #endif -// struct kilokelvin : prefixed_unit {}; // should not compile (prefix not allowed for this reference unit) struct metre_per_second : unit {}; struct dim_speed : derived_dimension, units::exp> {};