c++: too many templates?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux