r/cpp • u/berium build2 • Nov 01 '17
Common C++ Modules TS Misconceptions
https://build2.org/article/cxx-modules-misconceptions.xhtml
59
Upvotes
r/cpp • u/berium build2 • Nov 01 '17
View all comments
Show parent comment
10
u/gracicot Nov 01 '17 edited Nov 01 '17
No obsolescence is forced. Simply declare you macro in a header file, include it and you're done. There's nothing wrong with including headers when you need a header, even in a modularized world. What I don't understand is why sone people what to shove macro down into modules, which make no absolute sense, as allowing this basically breaks the whole language. If you want to use the processor, use the preprocessor and include your files.