0

There is a tuple implementation given here.

While the code compiles with gcc 4.8, with clang 3.5 it gives the following error: "expected expression" for the line return tail.get<M-1>();

I can't figure out what is wrong with the code and the error is not clear as to what is wrong.

Community
  • 1
  • 1
Buğra Gedik
  • 714
  • 8
  • 16

1 Answers1

4

That's a dependent expression, so it should be

return tail.template get<M-1>();
Jonathan Wakely
  • 166,810
  • 27
  • 341
  • 521