I have got this hpp file: and the corresponding cpp file: Now, compiling like this: g++ A.cpp I get this error: Obviously making the struct named it works, unfortunately I cannot control the typedef of struct rte_spinlock_t that is in a library. How c
Their object parameters have equivalent types. structA{friendvoidc();// #1};structB{friendvoidc(){}// corresponds to, and defines, #1};typedefintInt;enumE:int{a};voidf(int);// #2voidf(Int){}// defines #2voidf(E){}// OK, another overloadstructX{staticvoidf();voidf()const;...