mirror of
https://github.com/pybind/pybind11.git
synced 2025-02-18 06:30:54 +00: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…
Reference in New Issue
Block a user