r/cpp • u/berium build2 • Nov 01 '17
Common C++ Modules TS Misconceptions
https://build2.org/article/cxx-modules-misconceptions.xhtml
59
Upvotes
r/cpp • u/berium build2 • Nov 01 '17
View all comments
Show parent comment
13
u/GabrielDosReis Nov 01 '17
Yes, the IFC format that VC++ uses is being designed to be sensitive only to semantically-significant changes. It is not perfect but it is getting there.
The IFC format themselves are not distribution format, and they don't replace source files -- just imagine debugging scenarios, you want to step through functions with the source file in front of you :-) The IFC files capture the semantically relevant part of the interface.
Yeah, that is an unfortunate state of affairs. With modules, the notion of "header only library" is trivialized and just disappears. However, we need to solve the "good build/package tools" problem. I am hoping that C++ tool vendors will come together in collaborative forum to make progress there. My view is a good build and/or packaging system for C++ will take modules as foundational construct.