mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-29 23:34:12 +08:00
Use an enum instead of a static const int to prevent possible link error
This commit is contained in:
parent
f9ad25e4d8
commit
65a7113a36
@ -41,7 +41,7 @@ template <> struct max_n_1<0> {
|
|||||||
template <typename Scalar, typename Device>
|
template <typename Scalar, typename Device>
|
||||||
struct PacketType {
|
struct PacketType {
|
||||||
typedef typename internal::packet_traits<Scalar>::type type;
|
typedef typename internal::packet_traits<Scalar>::type type;
|
||||||
static const int size = internal::unpacket_traits<type>::size;
|
enum { size = internal::unpacket_traits<type>::size };
|
||||||
};
|
};
|
||||||
|
|
||||||
// For CUDA packet types when using a GpuDevice
|
// For CUDA packet types when using a GpuDevice
|
||||||
|
Loading…
x
Reference in New Issue
Block a user