mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-03-07 18:27:40 +08:00
Fix traits<Quaternion>::IsAligned when using evaluators
This commit is contained in:
parent
0403d49006
commit
8514179aa3
@ -217,7 +217,11 @@ struct traits<Quaternion<_Scalar,_Options> >
|
||||
typedef _Scalar Scalar;
|
||||
typedef Matrix<_Scalar,4,1,_Options> Coefficients;
|
||||
enum{
|
||||
#ifndef EIGEN_TEST_EVALUATORS
|
||||
IsAligned = internal::traits<Coefficients>::Flags & AlignedBit,
|
||||
#else
|
||||
IsAligned = (internal::traits<Coefficients>::EvaluatorFlags & AlignedBit) != 0,
|
||||
#endif
|
||||
Flags = IsAligned ? (AlignedBit | LvalueBit) : LvalueBit
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user