mirror of
https://github.com/RYDE-WORK/pybind11.git
synced 2026-02-02 21:45:53 +08:00
MSVC workaround for broken using detail::_ warning
This commit is contained in:
parent
657a51e889
commit
add56ccdca
@ -940,9 +940,9 @@ struct format_descriptor<T, detail::enable_if_t<std::is_enum<T>::value>> {
|
|||||||
template <typename T>
|
template <typename T>
|
||||||
struct format_descriptor<T, detail::enable_if_t<detail::array_info<T>::is_array>> {
|
struct format_descriptor<T, detail::enable_if_t<detail::array_info<T>::is_array>> {
|
||||||
static std::string format() {
|
static std::string format() {
|
||||||
using detail::_;
|
using namespace detail;
|
||||||
static constexpr auto extents = _("(") + detail::array_info<T>::extents + _(")");
|
static constexpr auto extents = _("(") + array_info<T>::extents + _(")");
|
||||||
return extents.text + format_descriptor<detail::remove_all_extents_t<T>>::format();
|
return extents.text + format_descriptor<remove_all_extents_t<T>>::format();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user