|
From: | Markus Mützel |
Subject: | [Octave-bug-tracker] [bug #65318] Deprecation warning with C++20 |
Date: | Fri, 16 Feb 2024 05:22:23 -0500 (EST) |
Follow-up Comment #10, bug#65318 (group octave): > One thought would be to avoid use of '=' or '&' for default capture and explicitly capture only the variables we need (including "this"). When I look at the lambda functions they are always capturing just one or two variables. That approach would probably allow to write code that is compatible with C++17 and earlier and with C++20 and later. At the same time it would make it easier for a reader to understand what is captured from the surrounding scope. I'd be in favor of that proposal. 👍 _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?65318> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |