Pretty funny. I have to use that "impressed" fib one day and silently chuckle. Ive actually used Boost preprocessor macros in C for huge benefits to compute variadic functions at compile time. You may not like boost templates or libs but the preproccessor stuff is merely just a turing complete arithmetic language that includes arrays, tuples, lists, and a whole slew of other great things. Its actually quite marvelous how its implemented all from standard macros. A treatise in limited functional programming. I would not want to produce those macros myself..they are insanely clever, just take a look at the source. They use something similar to Church encoding for representing numbers. You can use it without any of the other boost libs or headers. Repetitive code sucks and the BOOST_PP macros are godsend. Im pretty sure you are referring to other 'magic' most likely C++ template stuff. All boost PP does is give you data structures, loop, and arithmetic at compile time. [1]
[1] http://www.boost.org/doc/libs/1_61_0/libs/preprocessor/doc/i...