Code cleanup

This commit is contained in:
Benoit Steiner 2016-10-25 20:36:14 -07:00
parent b15a5dc3f4
commit 1644bafe29

View File

@ -56,7 +56,7 @@ struct traits<Tensor<Scalar_, NumIndices_, Options_, IndexType_> >
Options = Options_,
Flags = compute_tensor_flags<Scalar_, Options_>::ret | (is_const<Scalar_>::value ? 0 : LvalueBit)
};
template<class T> struct MakePointer{
template <typename T> struct MakePointer {
typedef T* Type;
};
};
@ -74,7 +74,7 @@ struct traits<TensorFixedSize<Scalar_, Dimensions, Options_, IndexType_, MakePoi
Options = Options_,
Flags = compute_tensor_flags<Scalar_, Options_>::ret | (is_const<Scalar_>::value ? 0: LvalueBit)
};
template<class T> struct MakePointer{
template <typename T> struct MakePointer {
typedef typename MakePointer_<T>::Type Type;
};
};
@ -94,7 +94,7 @@ struct traits<TensorMap<PlainObjectType, Options_ , MakePointer_> >
Options = Options_,
Flags = BaseTraits::Flags
};
template<class T> struct MakePointer{
template <class T> struct MakePointer {
typedef typename MakePointer_<T>::Type Type;
};
};