C++20's module feature is supposed to improve compile speed. But what is the advantage over precompiled headers, which also makes it fast to include a library?
Asked
Active
Viewed 53 times
0
-
1That is far too dependent on various factors (most importantly, quality of implementations in a period of time when modules are still new) to be able to answer. – Nicol Bolas Oct 01 '20 at 21:21
-
3One possible advantage is the isolation you get with modules. You only export what you explicitly said (in the module implementation) that should be exported. – darcamo Oct 01 '20 at 21:44