ERROR: aggregate has incomplete type and cannot be defined
I'm writing the following class for digital image inpainting:
However, when I compile, I get the following error:
FBInpainting/imgPlane.cpp: In member function ‘void imgPlane::writeLine(pixel, pixel, int, int)’:
FBInpainting/imgPlane.cpp:207: error: aggregate ‘pixel now’ has incomplete type and cannot be defined
I'm not sure what is "incomplete type", actually, I have no forward reference, etc.
So, I have no idea how to fix this error.
As the definition of pixel, please refer to the lines 21 ~ 23 of the header file.
Thanks a lot!