News for hackers. Stuff that matters.
Re:The Ugliest C Feature: tgmath.h by saagarjha on Sunday October 13, 2019 @08:49AM (#21240092)
Qt apparently does something similar to implement Q_FOREACH: https://stackoverflow.com/a/10522384/5230900
Re:The Ugliest C Feature: tgmath.h by likeliv on Sunday October 13, 2019 @12:17PM (#21241182)
That was pre-c++11. Now using C++11, it is much simpler (using 'auto'). And the C++17 version is even simpler

https://code.woboq.org/qt5/qtbase/src/corelib/global/qglobal...