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

Answer by Georg Fritzsche for How to fix 'expected primary-expression before'...

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...

View Article



How to fix 'expected primary-expression before' error in C++ template code?

Here's yet another VC9 vs. GCC 4.2 compile error problem. The following code compiles fine with VC9 (Microsoft Visual C++ 2008 SP1) but not with GCC 4.2 on Mac:struct C{ template< typename T >...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images