c++: too many templates?
@
andriy.tylychko@gmail.com
Thu Oct 23 11:15:00 GMT 2008
why the following code cannot be compiled?
template <typename TC>
class C
{
template <typename TF>
void f() {}
};
template <typename T>
void test()
{
C<T> c;
c.f<int>();
}
gcc-4.3.2 on "c.f<int>();" reports error: expected primary-expression before
‘int’
--
View this message in context: http://www.nabble.com/c%2B%2B%3A-too-many-templates--tp20128907p20128907.html
Sent from the gcc - Help mailing list archive at Nabble.com.
More information about the Gcc-help
mailing list