1 | // Copyright (c) 2010 Carl Philipp Reh |
---|---|
2 | // Copyright (c) 2001-2010 Hartmut Kaiser |
3 | // |
4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying |
5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
6 | |
7 | // make sure optionals play well with debug output |
8 | |
9 | #define BOOST_SPIRIT_DEBUG |
10 | #include <boost/spirit/include/qi.hpp> |
11 | #include <boost/spirit/home/support/attributes.hpp> |
12 | |
13 | #include <boost/core/lightweight_test.hpp> |
14 | #include <boost/optional.hpp> |
15 | |
16 | int main() |
17 | { |
18 | boost::spirit::qi::rule< |
19 | char const *, |
20 | boost::optional<int>() |
21 | > foo; |
22 | |
23 | BOOST_SPIRIT_DEBUG_NODE(foo); |
24 | return boost::report_errors(); |
25 | } |
26 |