diff --git a/include/pybind11/typing.h b/include/pybind11/typing.h index 6c6bd5947b..e9054c7843 100644 --- a/include/pybind11/typing.h +++ b/include/pybind11/typing.h @@ -282,9 +282,7 @@ struct handle_type_name { #if defined(PYBIND11_TYPING_H_HAS_STRING_LITERAL) template ::value, - int>::type - = 0> + typename std::enable_if::value, int>::type = 0> auto constexpr const_name() { return const_name(StrLit.name); }