struct test{
void call(test t1){
//
}
};
I have asked a similar question and found a few other links such as:
How am I able to use a class as a function parameter in itself?
Incomplete types in member function definitions
But none of them answer this question:
The compiler needs to emit code to allocated space on the stack for t1
, but at that
point test
is incomplete so how would it know how much space it needs?