diff --git a/test/unit_test/static/unit_test.cpp b/test/unit_test/static/unit_test.cpp index cbbff548..be223c56 100644 --- a/test/unit_test/static/unit_test.cpp +++ b/test/unit_test/static/unit_test.cpp @@ -43,7 +43,9 @@ struct dim_time : base_dimension<"time", second> {}; struct kelvin : named_unit {}; +#if !COMP_MSVC 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> {}; @@ -55,7 +57,9 @@ static_assert(compare>, foot>); static_assert(compare>, kilometre_per_hour>); +#if !COMP_MSVC static_assert([]() { return !requires { typename scaled_unit; }; }.template operator()()); // negative unit ratio +#endif static_assert(centimetre::symbol == "cm"); static_assert(kilometre::symbol == "km");