diff --git a/include/pybind11/numpy.h b/include/pybind11/numpy.h index a34bef207c..1510e79ed6 100644 --- a/include/pybind11/numpy.h +++ b/include/pybind11/numpy.h @@ -1570,7 +1570,7 @@ struct npy_format_descriptor_object { } pybind11_fail("Unsupported buffer format!"); } - static constexpr auto name = _("object"); + static constexpr auto name = const_name("object"); }; # define PYBIND11_NUMPY_OBJECT_DTYPE(Type) \