Fixed the initialization of the dummy member of the array class to make it compatible with pairs of element.

This commit is contained in:
Benoit Steiner 2016-02-03 17:23:07 -08:00
parent 727ff26960
commit 4ab63a3f6f

View File

@ -165,10 +165,10 @@ template <typename T> class array<T, 0> {
static EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE std::size_t size() { return 0; }
EIGEN_DEVICE_FUNC
EIGEN_STRONG_INLINE array() : dummy(static_cast<T>(0)) { }
EIGEN_STRONG_INLINE array() : dummy() { }
#ifdef EIGEN_HAS_VARIADIC_TEMPLATES
EIGEN_DEVICE_FUNC array(std::initializer_list<T> l) : dummy(static_cast<T>(0)) {
EIGEN_DEVICE_FUNC array(std::initializer_list<T> l) : dummy() {
eigen_assert(l.size() == 0);
}
#endif