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

View File

@ -38,7 +38,9 @@ struct traits<TensorEvalToOp<XprType, MakePointer_> >
}; };
template <class T> template <class T>
struct MakePointer { struct MakePointer {
typedef typename MakePointer_<T>::Type Type; // Intermediate typedef to workaround MSVC issue.
typedef MakePointer_<T> MakePointerT;
typedef typename MakePointerT::Type Type;
}; };
}; };

View File

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