Use an enum instead of a static const int to prevent possible link error

This commit is contained in:
Benoit Steiner 2016-03-22 09:33:54 -07:00
parent f9ad25e4d8
commit 65a7113a36

View File

@ -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