mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-08 09:49:03 +08:00
Size indices are signed.
This commit is contained in:
parent
31a25ab226
commit
cfa0568ef7
@ -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);
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user