From c1b0cddf0af5dbca6030fe51fcba25c386bf46a6 Mon Sep 17 00:00:00 2001 From: Eric Cousineau Date: Thu, 2 Nov 2023 13:15:53 -0400 Subject: [PATCH] [numpy] Fix constexpr auto name for dtype=object (#66) Addresses compilation error for C++11 --- include/pybind11/numpy.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pybind11/numpy.h b/include/pybind11/numpy.h index fabba048e3..5ed71e87cb 100644 --- a/include/pybind11/numpy.h +++ b/include/pybind11/numpy.h @@ -1548,7 +1548,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) \