diff options
author | Gael Guennebaud <g.gael@free.fr> | 2016-07-18 15:05:17 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2016-07-18 15:05:17 +0200 |
commit | 18884f17d7532c76e0d786bf4e3365caba35bed3 (patch) | |
tree | b918bfc744f9bc22d39bd35248d7ae83f2b85ce6 /Eigen/src/Geometry/Quaternion.h | |
parent | 79574e384e4121f9d019400d6c7a062e944cd871 (diff) |
Remove static constant declaration: this enforces compiler to generate costly code for thread safety.
Diffstat (limited to 'Eigen/src/Geometry/Quaternion.h')
-rw-r--r-- | Eigen/src/Geometry/Quaternion.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Geometry/Quaternion.h b/Eigen/src/Geometry/Quaternion.h index fc5175f01..c4a0eabb5 100644 --- a/Eigen/src/Geometry/Quaternion.h +++ b/Eigen/src/Geometry/Quaternion.h @@ -726,7 +726,7 @@ QuaternionBase<Derived>::slerp(const Scalar& t, const QuaternionBase<OtherDerive using std::acos; using std::sin; using std::abs; - static const Scalar one = Scalar(1) - NumTraits<Scalar>::epsilon(); + const Scalar one = Scalar(1) - NumTraits<Scalar>::epsilon(); Scalar d = this->dot(other); Scalar absD = abs(d); |