TGViewer
C++ - Reddit C++ - Reddit @r_cpp · 230 subscribers
Post #25053 18
Maintaining libraries in multiple formats are a bad idea

Library authors shouldn't maintain header only/ header source/ module libraries in one repo. It is a bad idea.

First of all library authors assume if tests succeed on header only format it also works on modules, which is not correct.

Second, the compilation and packaging becomes very ugly, it looks similar to c++ standard versioning macros. Like a project should only compile on one standard, and the other users should either stick to a version/branch or kick rocks.

It is very pleasant to just use modules for libraries, everything is clean. By adopting a support everything approach, library authors harm themselves first and then everyone else because everything lags down.

https://redd.it/1sufvwe
@r_cpp
Reddit From the cpp community on Reddit Explore this post and more from the cpp community
More from @r_cpp
  1. Oct 4, 2026Comparing exception behavior of magic statics, std::call_once, and std::async https://devb…
  2. Oct 4, 2026The complement of true is true, except when it's false https://dryperspective.github.io/po…
  3. Oct 4, 2026Grooves in Software - Andreas Wagner - [https://youtu.be/8XtZi4HTrcA](https://youtu.be/8Xt…
  4. Oct 4, 2026New C++ Conference Videos Released This Month - September 2026 (Updated To Include Videos…
  5. Oct 4, 2026Żmij 1.2 "the proof is in the printf" released with full to_chars implementation, formal v…
  6. Oct 4, 2026Why we should standardise on CPS To enable any collaboration in the industry, some "social…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →