mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-27 07:29:52 +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>
|
||||
struct PacketType {
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user