mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-08 09:49:03 +08:00
Fix static_assert for c++14.
This commit is contained in:
parent
3f3144f538
commit
64edfbed04
@ -51,7 +51,7 @@ struct CoherentPadOp : public dense_xpr_base<CoherentPadOp<XprType, SizeAtCompil
|
||||
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE CoherentPadOp(CoherentPadOp&& other) = default;
|
||||
|
||||
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE CoherentPadOp(const XprType& xpr, Index size) : xpr_(xpr), size_(size) {
|
||||
static_assert(XprNested_::IsVectorAtCompileTime && "input type must be a vector");
|
||||
static_assert(XprNested_::IsVectorAtCompileTime, "input type must be a vector");
|
||||
}
|
||||
|
||||
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const XprNested_& nestedExpression() const { return xpr_; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user