From f5b4000b4f5f420ada0909fdf6cf27926d703cf0 Mon Sep 17 00:00:00 2001 From: "Steve R. Sun" <1638650145@qq.com> Date: Sat, 25 Dec 2021 13:20:05 +0800 Subject: [PATCH] Replace _ with const_name --- include/pybind11/numpy.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/pybind11/numpy.h b/include/pybind11/numpy.h index 016a84b01..ea7ecfb8d 100644 --- a/include/pybind11/numpy.h +++ b/include/pybind11/numpy.h @@ -285,23 +285,23 @@ struct npy_format_descriptor_name; template struct npy_format_descriptor_name::value>> { - static constexpr auto name = _::value>( - _("bool"), _::value>("int", "uint") + _() + static constexpr auto name = const_name::value>( + const_name("bool"), const_name::value>("int", "uint") + const_name() ); }; template struct npy_format_descriptor_name::value>> { - static constexpr auto name = _::value || std::is_same::value>( - _("float") + _(), _("longdouble") + static constexpr auto name = const_name::value || std::is_same::value>( + const_name("float") + const_name(), const_name("longdouble") ); }; template struct npy_format_descriptor_name::value>> { -static constexpr auto name = _::value +static constexpr auto name = const_name::value || std::is_same::value>( - _("complex") + _(), _("longcomplex") + const_name("complex") + const_name(), const_name("longcomplex") ); };