-
-
Notifications
You must be signed in to change notification settings - Fork 381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can't get call_if to work because of etl::optional #951
Comments
What is type |
What type are you using as the result of There is an implicit conversion from This code compiles for me.
|
I got another one
This is a ESP32 IDF project. |
this follows the behavior of the standard std::optional type, which does not allow implicit type conversions except in the logical context of the if statement, due to the goals of improving the type safety of code in which there is no place for std::optional casts to integral types. This is provided by the explicit specifier for the conversion operator. |
Are you compiling for C++03 or >= C++11? |
|
while using delegate call_if, I got this error:
should it work?
if I call the delegate directly it works.
The text was updated successfully, but these errors were encountered: