octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #65318] Deprecation warning with C++20


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #65318] Deprecation warning with C++20
Date: Fri, 16 Feb 2024 05:40:13 -0500 (EST)

Follow-up Comment #11, bug#65318 (group octave):

When this issue came up once before, I argued for using [=] by default almost
everywhere because it did the right thing (including capturing "*this" by
reference) and it was simpler for maintenance than explicitly listing all the
captured variables.  But now I agree it is probably best to just list them all
individually and avoid [=] (or [&], in the rare cases where that is
appropriate).  If we have advice about this in a style guide, we should
probably update it.  I can work on the conversion on the default branch.  I
already backed out my previous change.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?65318>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]