Remove static constant declaration: this enforces compiler to generate costly code for thread safety.

This commit is contained in:
Gael Guennebaud 2016-07-18 15:05:17 +02:00
parent 79574e384e
commit 18884f17d7

View File

@ -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);