]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/spirit/test/qi/regression_fusion_proto_spirit.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / spirit / test / qi / regression_fusion_proto_spirit.cpp
1 /*=============================================================================
2 Copyright (c) 2001-2011 Hartmut Kaiser
3 Copyright (c) 2011 Robert Nelson
4
5 Distributed under the Boost Software License, Version 1.0. (See accompanying
6 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 =============================================================================*/
8
9 // These (compilation) tests verify that Proto's operator overloads do not
10 // trigger the corresponding operator overloads exposed by Fusion.
11
12 #include <boost/fusion/tuple.hpp>
13 #include <boost/spirit/include/qi.hpp>
14 #include <string>
15
16 int main()
17 {
18 namespace qi = boost::spirit::qi;
19
20 static qi::rule<std::string::const_iterator> const a;
21 static qi::rule<std::string::const_iterator> const b;
22 qi::rule<std::string::const_iterator> rule = a > b;
23
24 int vars;
25 qi::rule<std::string::const_iterator, int(const int&)> const r;
26 qi::rule<std::string::const_iterator, int()> r2 =
27 r(boost::phoenix::ref(vars)) > qi::eps;
28 }