Re: [Spirit Development] Bug using Phoenix::new_ in Qi semantic actions.
Joel de Guzman <[email protected]> Wed, 29 Dec 2010 00:40:19 +0800
| Newsgroups | gmane.comp.parsers.spirit.devel |
|---|---|
| Message-ID | <[email protected]> |
On 12/28/2010 7:37 PM, Robert Nelson wrote:
> #include<boost/spirit/include/qi.hpp>
> #include<boost/spirit/home/phoenix/object/new.hpp>
>
> int main()
> {
> using namespace boost::spirit::qi;
> using namespace boost::phoenix;
> boost::spirit::qi::rule<std::string::const_iterator,int*()> rule = eps[_val = new_<int>(5)];
> }
Try including:
#include <boost/spirit/home/phoenix/operator.hpp>
Regards,
--
Joel de Guzman
http://www.boostpro.com
http://spirit.sf.net
------------------------------------------------------------------------------
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