diff options
-rw-r--r-- | unsupported/Eigen/CXX11/src/Tensor/TensorTraits.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorTraits.h b/unsupported/Eigen/CXX11/src/Tensor/TensorTraits.h index 43288902f..428d32d41 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorTraits.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorTraits.h @@ -95,7 +95,9 @@ struct traits<TensorMap<PlainObjectType, Options_ , MakePointer_> > Flags = BaseTraits::Flags }; template <class T> struct MakePointer { - typedef typename MakePointer_<T>::Type Type; + // Intermediate typedef to workaround MSVC issue. + typedef MakePointer_<T> MakePointerT; + typedef typename MakePointerT::Type Type; }; }; |