Re: [Spirit Development] Bug using operator >> and > in same sequence

Robert Nelson <[email protected]> Sat, 1 Jan 2011 13:10:19 -0700
Newsgroups gmane.comp.parsers.spirit.devel
Message-ID <[email protected]>
> I'm not really seeing
> how it demonstrates the error you've described...
I attached the wrong file ;)
Sorry about that.  Here is the actual test I was referring to, and the
one I pasted into the email.

------------------------------------------------------------------------------
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, 587 B)
#include <boost/spirit/include/qi.hpp>
#include <boost/fusion/adapted/struct/adapt_struct.hpp>
#include <boost/spirit/include/phoenix_operator.hpp>
#include <boost/spirit/home/phoenix/object/construct.hpp>
#include <string>

struct point
{
  int x;
  int y;
  int z;
 point(const int&,const int&,const int&);
};

BOOST_FUSION_ADAPT_STRUCT(point,(int, x) (int, y) (int, z))

int main()
{
  {
    using namespace boost::spirit::qi;
    using namespace boost::phoenix;
    rule<std::string::const_iterator,point()> rule = (int_ >>  int_ > int_)[_val = construct<point>(_1,_2,_3)];
  }
}