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/config/warning_disable.hpp> 10 #include <boost/spirit/include/qi.hpp> 11 12 namespace qi = boost::spirit::qi; 13 14 struct source_mode {}; 15 16 struct process_type 17 { 18 template <typename A, typename B, typename C> operator ()process_type19 void operator()(A&, B&, C&) const {} 20 }; 21 main()22int main() 23 { 24 process_type process; 25 qi::rule<char const*> x = qi::attr(source_mode()) [process]; 26 return 0; 27 } 28