(如何)我可以在不安装完整的boost库的情况下使用boost::spirit X3吗?

(How) Can I use boost::spirit X3 without installing the full boost library?

是否可以在不安装完整的 boost 库的情况下使用 boost::spirit x3?我知道模块的存储库可用 here,但我真的不知道如何使用代码或包含哪些文件。我如何开始,这可能吗?

这里通常的答案是:使用 BCP (https://www.boost.org/doc/libs/1_71_0/tools/bcp/doc/html/index.html)。

但是,该页面非常恰当地解释了这将如何以及为什么会导致大量的依赖项选择。

所以,也许听从他们的建议:

If you want to figure out which Boost headers are being used by your specific compiler then the best way to find out is to prepocess the code and scan the output for boost header includes. You should be aware that the result will be very platform and compiler specific, and may not contain all the headers needed if you so much as change a compiler switch (for example turn on threading support).