diff --git a/include/pybind11/numpy.h b/include/pybind11/numpy.h index f64084e8..c7cbb9fd 100644 --- a/include/pybind11/numpy.h +++ b/include/pybind11/numpy.h @@ -940,9 +940,9 @@ struct format_descriptor::value>> { template struct format_descriptor::is_array>> { static std::string format() { - using detail::_; - static constexpr auto extents = _("(") + detail::array_info::extents + _(")"); - return extents.text + format_descriptor>::format(); + using namespace detail; + static constexpr auto extents = _("(") + array_info::extents + _(")"); + return extents.text + format_descriptor>::format(); } };