refactor: update hacks for LLVM 17

This commit is contained in:
Johel Ernesto Guerrero Peña
2023-03-04 14:28:37 -04:00
parent 1899f7803f
commit fbbddb9e7b
2 changed files with 2 additions and 2 deletions

View File

@@ -443,7 +443,7 @@ public:
}; };
// CTAD // CTAD
#if !UNITS_COMP_CLANG || UNITS_COMP_CLANG > 16 #if !UNITS_COMP_CLANG || UNITS_COMP_CLANG > 17
template<typename D, typename U, typename Rep> template<typename D, typename U, typename Rep>
explicit(false) quantity(Rep&&)->quantity<D, U, Rep>; explicit(false) quantity(Rep&&)->quantity<D, U, Rep>;
#endif #endif

View File

@@ -287,7 +287,7 @@ static_assert(get_length_derived_quantity() == 1_q_m);
// CTAD // CTAD
///////// /////////
#if UNITS_COMP_GCC >= 11 || UNITS_COMP_CLANG > 16 #if UNITS_COMP_GCC >= 11 || UNITS_COMP_CLANG > 17
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, int>);
static_assert(std::is_same_v<decltype(aliases::isq::si::m(123.))::rep, double>); static_assert(std::is_same_v<decltype(aliases::isq::si::m(123.))::rep, double>);
static_assert( static_assert(