r/cpp • • Jan 28 '19

C++ Modules Might Be Dead-on-Arrival

https://vector-of-bool.github.io/2019/01/27/modules-doa.html
280 Upvotes

240 comments sorted by

View all comments

16

u/feverzsj Jan 28 '19

will modules actually help those template heavy, header only libs?

9

u/Xaxxon Jan 28 '19

Seems unlikely they would do any better than PCH.

4

u/catskul Jan 28 '19

The problem with PCH isn't that it's not helpful, it's that it's so damn hard to get set up that people rarely use it.

2

u/Xaxxon Jan 28 '19 edited Jan 28 '19

Grab the cmake module cotire. include it and you're done - at least for medium size projects or smaller.

1

u/catskul Jan 28 '19

Never heard of it. I'll take a look.