xhawk18 / promise-cpp

C++ promise/A+ library in Javascript style.
MIT License
672 stars 92 forks source link

Cannot Use Mutable Lambda #21

Open 5cript opened 2 years ago

5cript commented 2 years ago

The following does not work using clang 14

auto promise = newPromise([](Defer d){ /*...*/ });
promise.then([bla]() mutable {
});

with "call_traits.hpp:135:20: error: call to pointer to member function of type 'void ()' drops 'const' qualifier"