spirit/doc/x3/include.qbk
2018-02-15 19:13:54 +03:00

30 lines
968 B
Plaintext

[/==============================================================================
Copyright (C) 2001-2015 Joel de Guzman
Copyright (C) 2001-2011 Hartmut Kaiser
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
===============================================================================/]
[section Include]
Spirit is a header file only library. There are no libraries to link to.
To use Spirit X3 simply include:
#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
It is a hex number where the first two digits determine the major version while
the last two digits determine the minor version. For example:
#define SPIRIT_X3_VERSION 0x3000 // version 3.0
[endsect] [/Include]