r/cpp • u/tartaruga232 MSVC user, r/cpp_modules • Apr 13 '26
Let's bite the Bullet: Module Units shouldn't implicitly import anything
https://github.com/abuehl/docs/blob/main/no-implicit-import.mdThe correct fix ... is to attack the root cause and stop implicitly importing the interface of module implementation units.
Adding yet another kind of partition is the wrong way to solve it.
19
Upvotes
View all comments
Show parent comment
9
u/rodrigocfd WinLamb Apr 13 '26
I got the same feeling. Gool ol' headers are so trivial and boring, that you can spend your time thinking about the business itself.