configure.ac: Enable C++20.

This introduces a number of changes:

* We can no longer implicitly capture `this` in `[=]() { ... }`,
  we have to explicitly capture it: `[=, this]() { ... }`.
* We added a newer version of the `AX_CXX_COMPILE_STDCXX` macro as
  the stable Debian does not have the latest version yet, and it is
  the latest version that has support for C++20.
This commit is contained in:
ZmnSCPxj jxPCSnmZ 2025-09-29 10:29:14 -04:00 committed by Ken Sedgwick
parent 0f74690b9f
commit 83306dd345
No known key found for this signature in database
GPG key ID: DBD2AF0849D711A9
7 changed files with 1082 additions and 11 deletions

View file

@ -204,7 +204,7 @@ void ChannelCreateDestroyMonitor::start() {
return destruction(bus, n);
};
bus.subscribe<Msg::Notification
>([=](Msg::Notification const& n) {
>([=, this](Msg::Notification const& n) {
if (n.notification == "channel_opened")
return on_channel_opened(n.params);
else if (n.notification == "channel_state_changed") {