mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 11:49:02 +08:00
Use EIGEN_STATIC_ASSERT for backward compatibility.
This commit is contained in:
parent
ff0a83aaf8
commit
783018d8f6
@ -36,8 +36,8 @@ struct TensorUInt128
|
|||||||
template<typename OTHER_HIGH, typename OTHER_LOW>
|
template<typename OTHER_HIGH, typename OTHER_LOW>
|
||||||
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE
|
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE
|
||||||
TensorUInt128(const TensorUInt128<OTHER_HIGH, OTHER_LOW>& other) : high(other.high), low(other.low) {
|
TensorUInt128(const TensorUInt128<OTHER_HIGH, OTHER_LOW>& other) : high(other.high), low(other.low) {
|
||||||
static_assert(sizeof(OTHER_HIGH) <= sizeof(HIGH), "high too wide");
|
EIGEN_STATIC_ASSERT(sizeof(OTHER_HIGH) <= sizeof(HIGH), "high too wide");
|
||||||
static_assert(sizeof(OTHER_LOW) <= sizeof(LOW), "low too wide");
|
EIGEN_STATIC_ASSERT(sizeof(OTHER_LOW) <= sizeof(LOW), "low too wide");
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user