test: quantity CTAD tests enabled only for the newest compilers

This commit is contained in:
Mateusz Pusz
2022-05-23 09:56:45 +02:00
parent a1637ebac6
commit 768f400cc3

View File

@@ -290,10 +290,9 @@ static_assert(get_length_derived_quantity() == 1_q_m);
#if UNITS_COMP_GCC >= 11 || UNITS_COMP_CLANG > 15
static_assert(std::is_same_v<decltype(aliases::isq::si::m(123))::rep, int>);
static_assert(std::is_same_v<decltype(aliases::isq::si::m(123.))::rep, double>);
#endif
static_assert(
std::is_same_v<decltype(aliases::isq::si::m3(aliases::isq::si::m2{2} * aliases::isq::si::m{3}))::rep, int>);
#endif
static_assert(is_same_v<decltype(quantity{length<metre, int>(123)}), length<metre, int>>);
static_assert(is_same_v<decltype(quantity{speed<metre_per_second>(123)}), speed<metre_per_second>>);