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
When captures exist, the lambda closure type doesn't have default constructor ([expr.prim.lambda.closure]/14) and hence not a POD. I think it's clear that such lambdas are not POD for the purposes of layout either.
Someone came across an inconsistency between GCC and Clang when it comes to determining POD-for-the-purposes-of-layout: llvm/llvm-project#59078
So, should lambdas be POD if their capture members are POD?
The text was updated successfully, but these errors were encountered: