News for hackers. Stuff that matters.
Re:Httpserver.h: Single header library for writing non-block... by Fronzie on Friday December 13, 2019 @02:03AM (#21779685)
It's partly a historical reason as well. There are many projects with very complex Makefiles. Those are hard to integrate into your own project.

Header-only is the other extreme: No makefile at all. With package managers like Conan and vcpkg, using a build-system like e.g. CMake, it's possible to have very simple and short project files which are easy to integrate.

In this regard, C and C++ are a bit behind the times compared to other languages.

Re:Httpserver.h: Single header library for writing non-block... by tonyedgecombe on Friday December 13, 2019 @05:18AM (#21780473)
Isn't C++ supposed to be getting proper namespaces soon?
Re:Httpserver.h: Single header library for writing non-block... by throwaway8941 on Friday December 13, 2019 @08:27AM (#21781286)
I am not an expert in C++, but there exists an opinion that it will not help as much as you might think.

https://cor3ntin.github.io/posts/modules/