mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
Use static const int
instead of enum
to avoid numerous local-type-template-args
warnings in C++03 mode
This commit is contained in:
parent
ec38f07b79
commit
edfb7962fd
@ -173,15 +173,14 @@ namespace Eigen
|
|||||||
EIGEN_EULER_ANGLES_CLASS_STATIC_ASSERT((unsigned)BetaAxisAbs != (unsigned)GammaAxisAbs,
|
EIGEN_EULER_ANGLES_CLASS_STATIC_ASSERT((unsigned)BetaAxisAbs != (unsigned)GammaAxisAbs,
|
||||||
BETA_AXIS_CANT_BE_EQUAL_TO_GAMMA_AXIS);
|
BETA_AXIS_CANT_BE_EQUAL_TO_GAMMA_AXIS);
|
||||||
|
|
||||||
enum
|
static const int
|
||||||
{
|
|
||||||
// I, J, K are the pivot indexes permutation for the rotation matrix, that match this Euler system.
|
// I, J, K are the pivot indexes permutation for the rotation matrix, that match this Euler system.
|
||||||
// They are used in this class converters.
|
// They are used in this class converters.
|
||||||
// They are always different from each other, and their possible values are: 0, 1, or 2.
|
// They are always different from each other, and their possible values are: 0, 1, or 2.
|
||||||
I = AlphaAxisAbs - 1,
|
I = AlphaAxisAbs - 1,
|
||||||
J = (AlphaAxisAbs - 1 + 1 + IsOdd)%3,
|
J = (AlphaAxisAbs - 1 + 1 + IsOdd)%3,
|
||||||
K = (AlphaAxisAbs - 1 + 2 - IsOdd)%3
|
K = (AlphaAxisAbs - 1 + 2 - IsOdd)%3
|
||||||
};
|
;
|
||||||
|
|
||||||
// TODO: Get @mat parameter in form that avoids double evaluation.
|
// TODO: Get @mat parameter in form that avoids double evaluation.
|
||||||
template <typename Derived>
|
template <typename Derived>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user