3 ms·
C++ modules have little to do with the concept of "modules" you find in other languages. You can think about it as a more standardized way to define and create
by dgellow 5y ago
C++ modules have little to do with the concept of "modules" you find in other languages. You can think about it as a more standardized way to define and create what is known as pre-compiled headers. But that's basically it.
- klodolph 5y agoC++ modules are not like pre-compiled headers. They give you freedom to specify what you are and are not exporting from a module. This is unlike header files (including pre-compiled headers), where you are constrained to re-export any dependency your header file has, as well as any code internal to your module which is necessary to declare your exports. C++ headers are a total mess, and modules are the cleanup effort.
- dgellow 5y agoSure, I don't disagree with that.