diff --git a/include/nanobind/ndarray.h b/include/nanobind/ndarray.h index c23fff7d..4c27dd26 100644 --- a/include/nanobind/ndarray.h +++ b/include/nanobind/ndarray.h @@ -137,9 +137,9 @@ template <> struct dtype_traits { static constexpr auto name = descr<0>(); }; -template <> struct dtype_traits { - static constexpr dlpack::dtype value{ 0, 0, 0 }; - static constexpr auto name = descr<0>(); +template struct dtype_traits { + static constexpr dlpack::dtype value = dtype_traits::value; + static constexpr auto name = dtype_traits::name; }; template struct shape {