3 ms·
The only realword problem with headers I've seen so far is when there are multiple versions of the same header in the same project (bad idea anyway), and one is
by flohofwoe 3y ago
The only realword problem with headers I've seen so far is when there are multiple versions of the same header in the same project (bad idea anyway), and one isn't extremely careful about search paths.
The module equivalent would be different versions of the same module under the same import name. Can the C++ module system actually deal with that?
- mathstuf 3y agoModules don't have search paths unless you toss everything into one directory. The robust way is to instead do `-fmodule-path=modname=path/to/bmi` where ambiguity is non-existent. It is IFNDR to have two modules of the same name in a program (basically just a restatement of the ODR on the module initialization function). Due to the compatibilities, there may be more than one BMI for a single module in a build, but that module can only exist at link or run time once.