C
carl
I have a template function that I call like this:
V testSize;
F image = getImage();
util.computeSize<V, I, P>(testSize, image);
But I get this error:
error: expected primary-expression before ‘,’ token
util is an instance of:
typedef MyUtil<I, M, T, D> UtilType;
UtilType util;
Which is a public field in my class. As can be seen I pass template
parameters (V and P) to the function that I do not pass to the class, could
this be the cause?
The wierd thing is that it compile fine in Visual Studio on windows Vista
but it gives the above error when I compile it on Ubuntu Linux.
Any ideas on what I am doing wrong?
V testSize;
F image = getImage();
util.computeSize<V, I, P>(testSize, image);
But I get this error:
error: expected primary-expression before ‘,’ token
util is an instance of:
typedef MyUtil<I, M, T, D> UtilType;
UtilType util;
Which is a public field in my class. As can be seen I pass template
parameters (V and P) to the function that I do not pass to the class, could
this be the cause?
The wierd thing is that it compile fine in Visual Studio on windows Vista
but it gives the above error when I compile it on Ubuntu Linux.
Any ideas on what I am doing wrong?