Use std::is_integral<T>::value instead of is_int<>{}.
NVCC doesn't seem to handle the construction + implicit conversion well. Explicitly specifying the value fixes this.
NVCC doesn't seem to handle the construction + implicit conversion well. Explicitly specifying the value fixes this.