I would like to use the generic lambda capture introduced in C ++ 14 (see Move capture to lambda for an explanation). However, the rest of my code is C ++ 11-friendly. I would like to do something line by line
#ifdef CPP14
#else
#endif
However, there are no good cross-compiler flags for versioning. Is there anything to offer? (except, of course, defining my own macros)
source
share