2 ms·
Part of the reason that "modules" aren't in C++ yet is that there isn't a precise definition of what modules are or what they should be. That being said, C++ d
by humanrebar 12y ago
Part of the reason that "modules" aren't in C++ yet is that there isn't a precise definition of what modules are or what they should be.
That being said, C++ doesn't have even the bare minimum of what would be considered a module system according to any definition. With a lot of hand waving, one should be able to more or less write:
import std::vector;
...and have the compiler (not the preprocessor!) find the relevant declarations and definitions for std::vector. Probably also important are additional restrictions to give more control over when and how preprocessor macros affect client code.