
上QQ阅读APP看书,第一时间看更新
Enabling header-only libraries with inline variables
While it was always possible in C++ to declare individual functions inline, C++17 additionally allows us to declare variables inline. This makes it much easier to implement header-only libraries, which was previously only possible using workarounds.