blob: 59132d116cc09a64dce260f37a52f46e8f7837aa [file] [log] [blame]
/*=============================================================================
Copyright (c) 2001-2011 Hartmut Kaiser
Copyright (c) 2011 Robert Nelson
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
=============================================================================*/
// These (compilation) tests verify that Proto's operator overloads do not
// trigger the corresponding operator overloads exposed by Fusion.
#include <boost/fusion/tuple.hpp>
#include <boost/spirit/include/qi.hpp>
#include <string>
int main()
{
namespace qi = boost::spirit::qi;
static qi::rule<std::string::const_iterator> const a;
static qi::rule<std::string::const_iterator> const b;
qi::rule<std::string::const_iterator> rule = a > b;
int vars;
qi::rule<std::string::const_iterator, int(const int&)> const r;
qi::rule<std::string::const_iterator, int()> r2 =
r(boost::phoenix::ref(vars)) > qi::eps;
}