Skip to content

Commit

Permalink
Slightly rename symbol in capture list to quench warning. (#823)
Browse files Browse the repository at this point in the history
  • Loading branch information
mijoku authored Dec 19, 2024
1 parent d7d9d90 commit b7c4f1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/nanobind/nb_class.h
Original file line number Diff line number Diff line change
Expand Up @@ -442,8 +442,8 @@ struct new_<Func, Return(Args...)> {
std::is_same_v<detail::intrinsic_t<Args>, kwargs>) + ... + 0);
detail::wrap_base_new(cl, sizeof...(Args) > num_defaults + num_varargs);

auto wrapper = [func = (detail::forward_t<Func>) func](handle, Args... args) {
return func((detail::forward_t<Args>) args...);
auto wrapper = [func_ = (detail::forward_t<Func>) func](handle, Args... args) {
return func_((detail::forward_t<Args>) args...);
};

if constexpr ((std::is_base_of_v<arg, Extra> || ...)) {
Expand Down

0 comments on commit b7c4f1a

Please sign in to comment.