Filter the synthesized attribute through a std::map in a boost spirit semantic action

前端 未结 2 1929
傲寒
傲寒 2020-12-21 23:23

I have a case where I\'d like to filter the value that comes up as a synthesized attribute inside of a rule through a std::map.

  • The map is pre-generated and wi
2条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-21 23:51

    Reposting from comment

    Try qi::_val = phx::ref(myMap)[qi::_1] rather than qi::_val = phx::at(myMap, qi::_1).

提交回复
热议问题