Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 25th, 2012  |  syntax: None  |  size: 0.46 KB  |  hits: 20  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Confusion between boost::bind and boost::phoenix placeholders
  2. template <typename Iterator>
  3. struct ruleset_grammar : qi::grammar<Iterator>
  4. {
  5.     template <typename TokenDef>
  6.     ruleset_grammar(TokenDef const& tok)
  7.       : ruleset_grammar::base_type(start)
  8.     {
  9.  
  10.         start =  *(  tok.set_name [ boost::bind( &cRuleSet::setName, &theRuleSet, ::_1 ) ]
  11.                   )
  12.               ;
  13.     }
  14.  
  15.     qi::rule<Iterator> start;
  16. };
  17.        
  18. using namespace boost::spirit;