r/cpp • MSVC user, r/cpp_modules • Apr 29 '26

Cpp Files Still Help Breaking Build Dependencies of Modules

https://abuehl.github.io/2026/04/23/cpp-files-still-help-breaking-dependencies.html

Nothing spectacular, but it helps to remember that cpp files still provide another level for breaking dependencies.

5 Upvotes

11 comments sorted by

View all comments

Show parent comment

3

u/IGarFieldI Apr 29 '26

I think they mean that if the two types are related enough, they should become part of the same module via partitions. I don't particularly see how this relates, though; not every type is going to be part of the same module, so for the ones that aren't this seems like nice way to break unnecessary build dependencies.

-1

u/tartaruga232 MSVC user, r/cpp_modules Apr 29 '26

2

u/IGarFieldI Apr 29 '26

That's just what I figured the other commenter meant. I personally haven't worked with modules on a larger scale than my personal projects.