2 ms·
With C++ metaprogramming as powerful as it is, why are macros (or what I presume to be macros) in the class body still necessary? It reminds me a bit of 1990s M
by quotemstr 8y ago
With C++ metaprogramming as powerful as it is, why are macros (or what I presume to be macros) in the class body still necessary? It reminds me a bit of 1990s MFC, and not in a good way.
- pjmlp 8y agoUsually the reason is that there are still a few cases where macros win, hence the ongoing proposals for compile time reflection for code generation. As for MFC, 2018s MFC looks pretty much like 1990s MFC, for those not willing to adopt .NET or UWP.
- jcelerier 8y ago> why are macros (or what I presume to be macros) in the class body still necessary there is one thing that templates cannot do, and that is transform an identifier into a string.