3 ms·
With consteval (and its cousins), std::source_location and modules you could pretty much compile C++ without the preprocessor. Hooray!
by gumby 7y ago
With consteval (and its cousins), std::source_location and modules you could pretty much compile C++ without the preprocessor. Hooray!
- DerekL 7y agoThere's still the need for logging and assertion functions, where you want to test the debugging level or some other value before you evaluate the arguments to the function. Right now, you need to use a macro, but there's a proposal: James Dennett and Geoff Romer. P0927R2: Towards A (Lazy) Forwarding Mechanism for C++. ISO/IEC C++ Standards Committee Paper. 2018. url: https://wg21.link/p0927r2 https://wg21.link/p0927r2.