We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
constexpr auto x = sizeof([var=+[]{}]{var();});
translates into
class __lambda_1_27 { public: inline /*constexpr */ void operator()() const { var(); } private: void (*var)(); public: __lambda_1_27( class __lambda_1_33 { public: inline /*constexpr */ void operator()() const { } using retType_1_33 = auto (*)() -> void; inline constexpr operator retType_1_33 () const noexcept { return __invoke; } private: static inline /*constexpr */ void __invoke() { __lambda_1_33{}.operator()(); } public: // /*constexpr */ __lambda_1_33() = default; }; void (*_var)()) : var{_var} {} }; constexpr const unsigned long x = sizeof(__lambda_1_27{+static_cast<void (*)()>(__lambda_1_33{}.operator __lambda_1_33::retType_1_33())});
The text was updated successfully, but these errors were encountered:
8233131
Merge pull request #589 from andreasfertig/fixIssue491
483be7e
Fixed #491: Consider lambda in expression of lambda init capture.
No branches or pull requests
constexpr auto x = sizeof([var=+[]{}]{var();});
translates into
The text was updated successfully, but these errors were encountered: