semantic action problem

Eugene Varshavsky <[email protected]>
Newsgroups gmane.comp.parsers.spirit.general
Message-ID <[email protected]>
Greetings,

I started with spirit 2 days ago and ran in to a small problem. Part of 
the actions.cpp example from the X3 tutorial is not working.

I am using Visual Studio, I copied actions.cpp completely and exactly, 
made sure to include right path info into Visual Studio. So far 
everything seems to work except the semantic action. Visual Studio 
reports error that it is expecting the semantic action functions to 
provide arguments, see attached image. Yet, the original code does not 
have any arguments for semantic action functions.

I tried to the following:
1. removing or commenting out [print_action()] and [f] from the code 
made it compile and run without errors
2. with semantic actions commented, if I add the value as the forth 
parameter to parse function, it gets the right value
3. double checked that some test lambda and template do in fact work 
fine on my system

What am I doing wrong? Do I need to specify somewhere that I want to use 
semantic actions?

Many thanks,
Eugene

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot

_______________________________________________
Spirit-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spirit-general
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.