On Sat, Oct 31, 2026, at 8:07 AM, Artyom Beilis via Boost wrote:
Do you think I would ever touch a header only library for RESTful API implementation? While template metaprogramming is an amazing technique. it is heavily abused in ASIO and Beast.
My $0.02
None of these are necessarily connected. Asio is a *general purpose* library, and precisely as John Kalb outlined in his recent C++Now talk it *should* not box you in or accept non-zero overhead of abstraction. However, when you consume it, you *pick* how you want to use it in your domain. You implement your RESTful API, with all the classical implementation fire-walling of separate TUs, no issue. I imagine you might need to include your JSON library of choice, but none of the ASIO internals could be visible, and none of the Beast HTTP internals *need* to be. In short, unlike `const`, header-only isn't contagious. My -$0.02