From add56ccdcac23a6c522a2c1174a866e293c61dab Mon Sep 17 00:00:00 2001 From: Jason Rhinelander Date: Fri, 12 Jan 2018 12:37:54 -0400 Subject: [PATCH] MSVC workaround for broken `using detail::_` warning --- include/pybind11/numpy.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/pybind11/numpy.h b/include/pybind11/numpy.h index f64084e8f..c7cbb9fd6 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(); } };