diff options
author | Gael Guennebaud <g.gael@free.fr> | 2016-10-27 21:51:37 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2016-10-27 21:51:37 +0200 |
commit | 530f20c21a82492be56ef451561f8cb4a43e9827 (patch) | |
tree | 1b058849d30de084d362f6bb4c324eee78a1b49e /unsupported/Eigen/CXX11/src/Tensor/TensorTraits.h | |
parent | c3ce4f9ac0dd36cbf7645539702a90f58e0b2718 (diff) |
Workaround MSVC issue.
Diffstat (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorTraits.h')
-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; }; }; |