Quantcast
Channel: How to fix 'expected primary-expression before' error in C++ template code? - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Answer by Georg Fritzsche for How to fix 'expected primary-expression before' error in C++ template code?

$
0
0

That should be

return X::template big< char >();

Dependent names from templates are taken to not be types unless you specify that they are via typename and assumed to not be templates unless specified via template.


Viewing all articles
Browse latest Browse all 2

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>