Why do C++ faggots write auto dist = [&](uint32_t col1, uint32_t col2) { return colorDist(col1, col2, cfg.luminanceWeight_); }; template <typename T> T min(T a, T b) {return a < b ? a : b;} instead of #define dist(col1, col2) colorDist(col1, col2, cfg.luminanceWeight_) #define min(a,b) ((a) < (b) ? (a) : (b))
I've seen a lot of C++11 features recently, because my old GCC doesn't want to compile them and I have to replace them with ({...}) in a macro (which for some reason always work)