Re: [Spirit Development] Bug in today's boost_trunk -- ambiguous operator >

Robert Nelson <[email protected]> Sat, 25 Dec 2010 18:30:58 -0700
Newsgroups gmane.comp.parsers.spirit.devel
Message-ID <[email protected]>
The example I gave before now works, but I am still having problems
with ambiguous operator overloading.
I think it is because in this example I am using a rule with a
parameter. The solution is probably very similar to the original
problem.

Thanks
--Robert Nelson

#include <boost/spirit/include/qi.hpp>
#include <boost/fusion/tuple.hpp>

int main()
{
  using namespace boost::spirit::qi;
  int vars;
  const rule<std::string::const_iterator,int(const int&)> r;
  rule<std::string::const_iterator,int()> r2 =
r(boost::phoenix::ref(vars)) > eps;
}

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl

_______________________________________________
Spirit-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spirit-devel
main.cpp (text/x-c++src, 285 B)
#include <boost/spirit/include/qi.hpp>
#include <boost/fusion/tuple.hpp>

int main()
{
  using namespace boost::spirit::qi;
  int vars;
  const rule<std::string::const_iterator,int(const int&)> r;
  rule<std::string::const_iterator,int()> r2 = r(boost::phoenix::ref(vars)) > eps;
}