Re: g++ Template call through pointer - a bug?

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

 



Vladimir Avdonin schrieb:

template <class T> void ptrfun(A* a) {
	a->fun<T>(); // tst.cpp:19: error: syntax error before `>' token
}


fixed in 3.4. use "a->template fun<T>()" as a workaround.


-- Stefan Strasser

[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