|
|
|
|
|
by flohofwoe
335 days ago
|
|
An STB-style header-only library is actually quite perfect for eliminating dead code if the implementation and all code using that library is in the same compilation unit (since the compiler will not include static functions into the build that are not called). ...or build -flto for the 'modern' catch-all feature to eliminate any dead code. ...apart from that, none of the problems outlined in the blog post apply to header only libraries anyway since they are not distributed as precompiled binaries. |
|