Size indices are signed.

This commit is contained in:
Benoit Steiner 2017-02-16 10:13:34 -08:00
parent 31a25ab226
commit cfa0568ef7

View File

@ -54,7 +54,7 @@ struct is_input_scalar<Sizes<> > {
static const bool value = true; static const bool value = true;
}; };
#ifndef EIGEN_EMULATE_CXX11_META_H #ifndef EIGEN_EMULATE_CXX11_META_H
template <typename std::size_t... Indices> template <typename std::ptrdiff_t... Indices>
struct is_input_scalar<Sizes<Indices...> > { struct is_input_scalar<Sizes<Indices...> > {
static const bool value = (Sizes<Indices...>::total_size == 1); static const bool value = (Sizes<Indices...>::total_size == 1);
}; };