From b7c4f1abfcab9cc5a8f0ef758926d92ff5eac3a3 Mon Sep 17 00:00:00 2001 From: mijoku <39005456+mijoku@users.noreply.github.com> Date: Thu, 19 Dec 2024 07:07:02 +0100 Subject: [PATCH] Slightly rename symbol in capture list to quench warning. (#823) --- include/nanobind/nb_class.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/nanobind/nb_class.h b/include/nanobind/nb_class.h index daf2462b..eeb8e328 100644 --- a/include/nanobind/nb_class.h +++ b/include/nanobind/nb_class.h @@ -442,8 +442,8 @@ struct new_ { std::is_same_v, kwargs>) + ... + 0); detail::wrap_base_new(cl, sizeof...(Args) > num_defaults + num_varargs); - auto wrapper = [func = (detail::forward_t) func](handle, Args... args) { - return func((detail::forward_t) args...); + auto wrapper = [func_ = (detail::forward_t) func](handle, Args... args) { + return func_((detail::forward_t) args...); }; if constexpr ((std::is_base_of_v || ...)) {