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
1
u/kammce WG21 | 🇺🇲 NB | Boost | Exceptions Apr 13 '26
Question about the messy alternative. Given that you made those modules partitions, you'd have to re-import them in the PMIU, correct?