Don’t pass lambdas (or other multi-line entities) as parameters to macros—Raymond Chen
▻http://isocpp.org/feeder/?FeederAction=clicked&feed=All+Posts&seed=http%3A%2F%2Fisocpp.org%2Fblog%2F2
Not helping you.
Don’t pass lambdas (or other multi-line entities) as parameters to macros by Raymond Chen
From the article:
Consider this macro: #ifdef DEBUG
#define LOG(value) LogValue(value)
#else
// In production, evaluate but don’t log.
#define LOG(value) (value)
#endif This seems not entirely unreasonable, but bad things happen if you pass a multi-line entity as the macro parameter...
#News,Articles&_Books,