Skip to content

Commit

Permalink
remove auto on StrLit case
Browse files Browse the repository at this point in the history
  • Loading branch information
InvincibleRMC committed Dec 12, 2024
1 parent 96bee07 commit bae6ce2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions include/pybind11/typing.h
Original file line number Diff line number Diff line change
Expand Up @@ -281,10 +281,7 @@ struct handle_type_name<typing::Never> {
};

#if defined(PYBIND11_TYPING_H_HAS_STRING_LITERAL)
template <auto StrLit,
typename std::enable_if<std::is_same<decltype(StrLit), typing::StringLiteral>::value,
int>::type
= 0>
template <typing::StringLiteral StrLit>
auto constexpr const_name() {
return const_name(StrLit.name);
}
Expand Down

0 comments on commit bae6ce2

Please sign in to comment.