News for hackers. Stuff that matters.
Re:Single-file cross-platform C/C++ headers implementing sel... by flohofwoe on Sunday March 10, 2019 @07:39AM (#19351537)
They're also known as STB-style headers, but IMHO all those names are correct.

One advantage is that you don't need to mess with build systems for configuration, instead put the configuration defines before the implementation right in the source code.

Another advantage is potentially faster compilation if you put many implementations into the same implementation source. Same idea as unity-builds basically. Even though you're using dozens of header-only-"modules", the compiler only builds a single file.

There are no comments on this comment yet.