diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h b/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h index 26e5dafce..c71a30d21 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h @@ -397,7 +397,7 @@ template <> class UniformRandomGenerator { // Make sure m_deterministic comes first to match the layout of the cpu // version of the code. bool m_deterministic; - mutable std::mt19937* m_generator; + std::mt19937* m_generator; mutable std::uniform_real_distribution m_distribution; }; @@ -438,7 +438,7 @@ template <> class UniformRandomGenerator { // Make sure m_deterministic comes first to match the layout of the cpu // version of the code. bool m_deterministic; - mutable std::mt19937* m_generator; + std::mt19937* m_generator; mutable std::uniform_real_distribution m_distribution; }; #endif @@ -611,7 +611,7 @@ template class NormalRandomGenerator { bool m_deterministic; mutable std::normal_distribution m_distribution; - mutable std::mt19937* m_generator; + std::mt19937* m_generator; }; #elif defined (EIGEN_USE_GPU) && defined(__CUDACC__) && defined(__CUDA_ARCH__)