Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem compiling s_expression_2 example #4

Closed
cbossut opened this issue Jan 29, 2015 · 1 comment
Closed

Problem compiling s_expression_2 example #4

cbossut opened this issue Jan 29, 2015 · 1 comment
Assignees
Labels

Comments

@cbossut
Copy link

cbossut commented Jan 29, 2015

Hello again,

I have an error while compiling the example s_expression_2 that I don't understand :

c++ -I. -std=c++11 -stdlib=libc++ -pedantic -Wall -Wextra -Werror -O3 examples/s_expression_2.cc -o build/examples/s_expression_2
examples/s_expression_2.cc:74:32: error: no matching member function for call to 'parse'
read_parser( fn, in ).parse< main, action >( f2 );
~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
./pegtl/read_parser.hh:39:12: note: candidate template ignored: invalid explicitly-specified argument
for template parameter 'Action'
void parse( States && ... st )
^
1 error generated.
make: *** [build/examples/s_expression_2] Error 1

@d-frey
Copy link
Member

d-frey commented Jan 29, 2015

The code used action within a method of the class template, hence it is the full type, not the class template. Fixed the illegal code by using sexpr::action.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants