10

没有找到boost Spirit 3的下载,官网好像12月底就不说了?它去哪儿了?

4

1 回答 1

8

源代码可在Github上找到。文档在这里。引自博客

C++ Now 2015。今天是 Spirit X3 的正式发布,也就是 Spirit 3.0.0。X3 将处于测试阶段,与 Qi、Karma、Lex 和 Classic 并存。

根据 Sehe(见评论),X3 至少早在 2015 年 11 月就包含在 Boost 版本中。由于它只是标题,我认为您可以从 Github 轻松下载 Spirit。

如果您查看文档的“包含”部分(上面链接),您将阅读:

Spirit 是一个只有头文件的库。没有要链接的库。要使用 Spirit X3,只需包括:

#include <boost/spirit/home/x3.hpp> To distinguish between Spirit versions, you can inspect the version file:

#include <boost/spirit/home/x3/version.hpp> using the preprocessor define

SPIRIT_X3_VERSION 它是一个十六进制数字,其中前两位数字确定主要版本,后两位数字确定次要版本。例如:

#define SPIRIT_VERSION 0x3000 // version 3.0

看看 Github,你会发现include/boost/spirit/home/x3. 如果您查看拉取请求的历史记录,您会发现该项目非常活跃。如果您对项目的活动有疑问,请联系团队。

于 2017-03-15T02:07:19.057 回答