mirror of
https://github.com/catchorg/Catch2.git
synced 2025-04-04 09:34:47 +02:00

Using sizeof(expr) can trigger a compile-time error, "lambda expressions are not allowed in an unevaluated context", when passing expression containing lambda, like a std algorithm. This error is considered a standard defect, as it is meant to prevent lambdas in decltype or templates, but not in sizeof. This reverts commit 227598af47e4d46f06cfcc879f206eb34e681275.