<分区>
我正在为我的下一个项目使用 boost C++ 库,文档说它是一个只有头文件的库。
Most Boost libraries are header-only: they consist entirely of header files containing templates and inline functions, and require no separately-compiled library binaries or special treatment when linking.
所以我的问题是,这是否意味着我不需要为这些 boost 库链接库并且包含 header 是唯一的要求?
什么是仅 header 库,它们与需要构建和链接到二进制文件的标准库有何不同?