Build as C++20

Switch CMake (including the Core and GPU compile features and the Android
flag), the Visual Studio projects (stdcpp20), the legacy Android NDK
makefiles, the libretro makefiles and .ycm_extra_conf.py from C++17 to
C++20.

[=] lambdas that use this implicitly become [=, this], to avoid
-Wdeprecated-this-capture.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Henrik RydgårdandClaude Sonnet 5.5 committed 2026-10-28 00:02:06 +01:00
1 parent cbdc38f68f
commit cbb553ccc7
26 files changed
+92 -92

No files matched your search

+1 -1
View File
@@ -1121,7 +1121,7 @@ CollapsibleSection::CollapsibleSection(std::string_view title, LayoutParams *lay
SetSpacing(0.0f);
header_ = Add(new CollapsibleHeader(open_, title));
header_->OnClick.Add([=](UI::EventParams &) {
header_->OnClick.Add([=, this](UI::EventParams &) {
// Change the visibility of all children except the first one.
// Later maybe try something more ambitious.
UpdateVisibility();