首页 > 代码库 > Warning: 'typedef' was ignored in this declaration

Warning: 'typedef' was ignored in this declaration

Question:

Warning: ‘typedef‘ was ignored in this declaration.

 

Answers:

Delete typedef. It‘s the C way of declaring structs, C++ does it automatically for you.

Warning: 'typedef' was ignored in this declaration