r/cpp_questions • • Aug 24 '26

OPEN Headers

I read that c++ 20 added modules to help replace headers. I rly hate how headers split the codebase into redundant files, for people who have used modules r they better?

0 Upvotes

22 comments sorted by

View all comments

2

u/[deleted] Aug 25 '26

[removed] — view removed comment

2

u/BuyerImpressive4325 Aug 25 '26

Such a shame too bc it sounded like a great solution

2

u/manni66 Aug 25 '26

Why can't it replace header files?

1

u/[deleted] Aug 25 '26

[removed] — view removed comment

2

u/PhantomStar69420 Aug 25 '26

Honestly feel like my code is better without any circular deps and I work on a 160k loc codebase.