]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | [/============================================================================== |
2 | Copyright (C) 2001-2015 Joel de Guzman | |
3 | Copyright (C) 2001-2011 Hartmut Kaiser | |
4 | ||
5 | Distributed under the Boost Software License, Version 1.0. (See accompanying | |
6 | file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
7 | ===============================================================================/] | |
8 | ||
9 | [section Include] | |
10 | ||
11 | Spirit is a header file only library. There are no libraries to link to. | |
12 | To use Spirit X3 simply include: | |
13 | ||
14 | #include <boost/spirit/home/x3.hpp> | |
15 | ||
16 | To distinguish between Spirit versions, you can inspect the version file: | |
17 | ||
18 | #include <boost/spirit/home/x3/version.hpp> | |
19 | ||
20 | using the preprocessor define | |
21 | ||
22 | SPIRIT_X3_VERSION | |
23 | ||
24 | It is a hex number where the first two digits determine the major version while | |
25 | the last two digits determine the minor version. For example: | |
26 | ||
27 | #define SPIRIT_VERSION 0x3000 // version 3.0 | |
28 | ||
29 | [endsect] [/Include] |