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/detail/lightweight_test.hpp> 11 #include <boost/spirit/include/qi.hpp> 12 #include <boost/spirit/home/support/attributes.hpp> 13 #include <boost/optional.hpp> 14 main()15int main() 16 { 17 boost::spirit::qi::rule< 18 char const *, 19 boost::optional<int>() 20 > foo; 21 22 BOOST_SPIRIT_DEBUG_NODE(foo); 23 return boost::report_errors(); 24 } 25