mirror of
https://github.com/ZmnSCPxj/clboss.git
synced 2026-08-18 13:09:01 +02:00
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:
parent
0f74690b9f
commit
83306dd345
7 changed files with 1082 additions and 11 deletions
|
|
@ -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") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue