I don't know if this should go in the game coding forum, but it is in reference to image processing/linear algebra, so maybe some of you have seen it.
This is previously developed code that I'm taking over. The old code was compiled with an old MS VC (6, I believe). I'm using MS VC .NET
In any case, it's a template class - the code looks a bit like this:
but I'm getting this compile error:Code:template<typename T> class matrix3 { public: ... typedef T (*V_FCT_PTR)(T); ... }; template<typename T> matrix3<T>& matrix3<T>::apply(matrix3<T>::V_FCT_PTR fct) // line 202 { ... }
matrix3.cpp(202): error C2146: syntax error : missing ')' before identifier 'fct'
Shouldn't 'fct' be a pointer to a function that takes a T as an argument and returns a T? Isn't this proper syntax?
I don't see the problem.
Anyone else have an idea?



LinkBack URL
About LinkBacks


