Fix warnings

This commit is contained in:
Charles Schlosser
2024-05-31 14:33:37 +00:00
committed by Rasmus Munk Larsen
parent 38b9cc263b
commit e605227030
2 changed files with 47 additions and 13 deletions

View File

@@ -37,9 +37,7 @@ struct maybe_coherent_pad_helper {
template <typename DerivativeType, typename OtherDerivativeType>
struct maybe_coherent_pad_helper<
DerivativeType, OtherDerivativeType,
std::enable_if_t<DerivativeType::SizeAtCompileTime >= OtherDerivativeType::SizeAtCompileTime &&
DerivativeType::SizeAtCompileTime != Dynamic &&
OtherDerivativeType::SizeAtCompileTime != Dynamic>> {
std::enable_if_t<enum_ge_not_dynamic(DerivativeType::SizeAtCompileTime, OtherDerivativeType::SizeAtCompileTime)>> {
using type = const DerivativeType&;
static const DerivativeType& pad(const DerivativeType& x, const OtherDerivativeType& /*y*/) { return x; }
};