Fix CXX11Meta compilation with MSVC

This commit is contained in:
Eugene Zhulenev 2019-10-28 18:30:10 -07:00
parent bd864ab42b
commit fbc0a9a3ec

View File

@ -71,7 +71,7 @@ class array : public std::array<T, N> {
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
array(std::initializer_list<T> l) {
eigen_assert(l.size() == N);
internal::smart_copy(l.begin(), l.end(), this->begin());
internal::smart_copy(l.begin(), l.end(), &this->front());
}
#endif
};