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
main.cpp2:6:38: error: variable 'require' declared with deduced type 'std::optional' cannot appear in its own initializer
6 | std::optional require {CPP2_UFCS_0(require, t)};
| ^
main.cpp2:6:17: error: no viable constructor or deduction guide for deduction of template arguments of 'optional'
6 | std::optional require {CPP2_UFCS_0(require, t)};
| ^
This is the same as #550 (comment).
Except that we can't easily identify that CTAD is required.
Maybe a nested requirement such as requires { typename std::optional; } might work to detect it.
The text was updated successfully, but these errors were encountered:
See #550 (comment):
The text was updated successfully, but these errors were encountered: