I’ve recently stumbled upon this interesting post this interesting post of curious features of C++ I didn’t know of (being a C/C++ programmer for so many years!).
One of the techniques I find really amazing (even when sometimes this kind of cleverness comes to bite you in the ass afterwards!) is Duff’s device. I’ve done my fair share of loop unrollings and clever tricks on C, but I find this an step further!