3
0
Fork 0
mirror of https://github.com/lubosz/overte.git synced 2025-04-11 00:23:27 +02:00
overte-lubosz/libraries/gpu-gl
Lubosz Sarnecki 676de4b75b interface+libraries+tools: Capture this explicitly in lambda copy capture.
Since C++20 it is deprecated to implicitly capture this with [=] lambda
copy expressions.

See: https://en.cppreference.com/w/cpp/language/lambda#Lambda_capture

This patch replaces these occurances with [this] where only this is
required and [=, this] where more scope is required.

In case only this and another variable is required in the scope I chose
to use that variable explicitly in favor of =.

This fixes the GCC14 warning: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20 [-Wdeprecated].
2024-08-03 18:59:15 +02:00
..
src/gpu interface+libraries+tools: Capture this explicitly in lambda copy capture. 2024-08-03 18:59:15 +02:00
CMakeLists.txt Renamed environment variables 2022-09-08 22:18:50 +02:00