Fixed broken commit a09cfe650f

. Missing } and unprotected min/max calls and definitions.
This commit is contained in:
Christoph Hertzberg
2015-08-22 15:03:16 +02:00
parent a09cfe650f
commit 78358a7241
2 changed files with 14 additions and 13 deletions

View File

@@ -88,7 +88,7 @@ template<typename T> struct GenericNumTraits
EIGEN_DEVICE_FUNC
static inline T highest() {
#if defined(__CUDA_ARCH__)
return internal::device::numeric_limits<T>::max();
return (internal::device::numeric_limits<T>::max)();
#else
return (std::numeric_limits<T>::max)();
#endif
@@ -101,6 +101,7 @@ template<typename T> struct GenericNumTraits
#else
return IsInteger ? (std::numeric_limits<T>::min)() : (-(std::numeric_limits<T>::max)());
#endif
}
};
template<typename T> struct NumTraits : GenericNumTraits<T>