mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 05:05:11 +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>
|
||||
struct format_descriptor<T, detail::enable_if_t<detail::array_info<T>::is_array>> {
|
||||
static std::string format() {
|
||||
using detail::_;
|
||||
static constexpr auto extents = _("(") + detail::array_info<T>::extents + _(")");
|
||||
return extents.text + format_descriptor<detail::remove_all_extents_t<T>>::format();
|
||||
using namespace detail;
|
||||
static constexpr auto extents = _("(") + array_info<T>::extents + _(")");
|
||||
return extents.text + format_descriptor<remove_all_extents_t<T>>::format();
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user