aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/Eigen/src
diff options
context:
space:
mode:
authorGravatar Christoph Hertzberg <chtz@informatik.uni-bremen.de>2018-09-07 14:08:39 +0200
committerGravatar Christoph Hertzberg <chtz@informatik.uni-bremen.de>2018-09-07 14:08:39 +0200
commitedfb7962fdae447125e188a03bfea33b47df010a (patch)
tree35a1d9a4b745e9bb3989fb1ae2d17b4363ea7fe2 /unsupported/Eigen/src
parentec38f07b799e2e3b82921ac3a5839f90ea3333c4 (diff)
Use `static const int` instead of `enum` to avoid numerous `local-type-template-args` warnings in C++03 mode
Diffstat (limited to 'unsupported/Eigen/src')
-rw-r--r--unsupported/Eigen/src/EulerAngles/EulerSystem.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/unsupported/Eigen/src/EulerAngles/EulerSystem.h b/unsupported/Eigen/src/EulerAngles/EulerSystem.h
index 65c2e94c7..88acabcf8 100644
--- a/unsupported/Eigen/src/EulerAngles/EulerSystem.h
+++ b/unsupported/Eigen/src/EulerAngles/EulerSystem.h
@@ -173,15 +173,14 @@ namespace Eigen
EIGEN_EULER_ANGLES_CLASS_STATIC_ASSERT((unsigned)BetaAxisAbs != (unsigned)GammaAxisAbs,
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.
// They are used in this class converters.
// They are always different from each other, and their possible values are: 0, 1, or 2.
I = AlphaAxisAbs - 1,
J = (AlphaAxisAbs - 1 + 1 + IsOdd)%3,
K = (AlphaAxisAbs - 1 + 2 - IsOdd)%3
- };
+ ;
// TODO: Get @mat parameter in form that avoids double evaluation.
template <typename Derived>