1// Copyright (c) 2010 Daniel James
2// Copyright (c) 2001-2011 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// this is a compile only regression test
8
9#include <boost/spirit/include/qi.hpp>
10
11namespace qi = boost::spirit::qi;
12
13struct source_mode {};
14
15struct process_type
16{
17 template <typename A, typename B, typename C>
18 void operator()(A&, B&, C&) const {}
19};
20
21int main()
22{
23 process_type process;
24 qi::rule<char const*> x = qi::attr(source_mode()) [process];
25 return 0;
26}
27

source code of boost/libs/spirit/test/qi/regression_attr_with_action.cpp