0

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?

bolov
  • 58,757
  • 13
  • 108
  • 182
felix
  • 617
  • 1
  • 6
  • 10
  • 1
    That 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
  • 3
    One 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

0 Answers0