I’m trying to use a delegate library in gcc http://www.codeproject.com/KB/cpp/ImpossiblyFastCppDelegate.aspx but the “preferred syntax” is not recognized by gcc 4.3. I.e. howto make compiler understand the
template < RET_TYPE (ARG1, ARG2) > syntax instead of template ??
TIA
/Rob
If a class has a template function as:
then VC++ recognizes the syntax in class B, but for GCC you have to insert keyword template:
and then it works in both GCC and VC++ (I wrote this off the top of my head, so I’m fairly sure its correct 😉