I have the following declaration in my header file:
extern "C" {
struct lfModifier {
template<typename T>
static void ModifyColor_Vignetting_PA (
void *data, float x, float y, T *rgb, int comp_role, int count);
}
}
GCC probably rightfully complains "error: template with C linkage". But the template is static after all. I could easily move it out of the class into the cpp file. I don't like to do that because having it in the struct increases code readability.
Is there a way to have a static template in this context?