I personally don’t like old C-style of struct declarations like that:
typedef struct {} NewType;
ctags makes ugly anon types of this and make the debugging difficult. Is there any reason in C++ code using typedef struct instead of simply struct, except the code is used in both C and C++?
Regards,
Valentin
One major drawback of those
is that, forward-declarations are not possible with the commonly used typedef’fed name.
Yes, it’s a C-ism (kudos sbi) and there are c++-codebases, where it – unfortunately – (still) is common.