1
0
mirror of https://gitlab.com/libeigen/eigen.git synced 2025-09-23 06:43:13 +08:00

Worked around Visual Studio compilation errors

This commit is contained in:
Benoit Steiner 2016-10-28 07:54:27 -07:00
parent d5f88e2357
commit 0a9ad6fc72
2 changed files with 7 additions and 4 deletions
unsupported/Eigen/CXX11/src/Tensor

@ -38,7 +38,9 @@ struct traits<TensorEvalToOp<XprType, MakePointer_> >
};
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;
};
};

@ -42,9 +42,10 @@ struct traits<TensorForcedEvalOp<XprType, MakePointer_> >
enum {
Flags = 0
};
template <class T>
struct MakePointer {
typedef typename MakePointer_<T>::Type Type;
template <class T> struct MakePointer {
// Intermediate typedef to workaround MSVC issue.
typedef MakePointer_<T> MakePointerT;
typedef typename MakePointerT::Type Type;
};
};