Re:Show HN: C++ Http-Live-Streaming Server built with Oat++ ...
by quotemstr on Wednesday October 24, 2018 @12:13AM
(#18289673)
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.
[ Parent
| on HN ]
Re:Show HN: C++ Http-Live-Streaming Server built with Oat++ ...
by jcelerier on Wednesday October 24, 2018 @04:34AM
(#18290639)
> 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.
Re:Show HN: C++ Http-Live-Streaming Server built with Oat++ ...
by pjmlp on Wednesday October 24, 2018 @04:34AM
(#18290632)
Usually 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.