https://old.reddit.com/r/C_Programming/comments/bn04w0/confu...
In short, for "typedef struct bar bar;", C views "bar" as an incomplete type, but C++ doesn't.
https://old.reddit.com/r/C_Programming/comments/bn04w0/confu...
In short, for "typedef struct bar bar;", C views "bar" as an incomplete type, but C++ doesn't.