You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working in C++ on a MacBook Air M1. After updating to Sequoia 15.3.1, IDE error C/C++(312) appeared on an apparently correct code (it compiles with g++ with no warning.
Here is how it appeared on my project: the following call
void addKeyPress(int ctrl, int shift, int alt, int super, int key, std::function<void()> f) {
int keyCode = computeKey(ctrl, shift, alt, super, key);
if (keyPressActions.find(keyCode) != keyPressActions.end()) {
throw std::runtime_error("KeyPress action already exists for this combination.");
}
keyPressActions[keyCode] = f;
}
shows the error C/C++(312)
no suitable user-defined conversion from "lambda []()->void" to "std::function<void ()>" existsC/C++(312)` near the `[` of `[this]()`
The red wiggled line shows up under the first "[" of the last argument of method call.
I would appreciate any help.
Thanks.
The text was updated successfully, but these errors were encountered:
I'm working in C++ on a MacBook Air M1. After updating to Sequoia 15.3.1, IDE error C/C++(312) appeared on an apparently correct code (it compiles with g++ with no warning.
Here is how it appeared on my project: the following call
on the following method
shows the error C/C++(312)
The red wiggled line shows up under the first "[" of the last argument of method call.
I would appreciate any help.
Thanks.
The text was updated successfully, but these errors were encountered: