Skip to content

Commit add56cc

Browse files
committed
MSVC workaround for broken using detail::_ warning
1 parent 657a51e commit add56cc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/pybind11/numpy.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -940,9 +940,9 @@ struct format_descriptor<T, detail::enable_if_t<std::is_enum<T>::value>> {
940940
template <typename T>
941941
struct format_descriptor<T, detail::enable_if_t<detail::array_info<T>::is_array>> {
942942
static std::string format() {
943-
using detail::_;
944-
static constexpr auto extents = _("(") + detail::array_info<T>::extents + _(")");
945-
return extents.text + format_descriptor<detail::remove_all_extents_t<T>>::format();
943+
using namespace detail;
944+
static constexpr auto extents = _("(") + array_info<T>::extents + _(")");
945+
return extents.text + format_descriptor<remove_all_extents_t<T>>::format();
946946
}
947947
};
948948

0 commit comments

Comments
 (0)