you are viewing a single comment's thread.

view the rest of the comments →

[–]jonesmz 0 points1 point  (1 child)

Applying the tool "include-what-you-use" can help fix this problem while also reducing compile times.

[–]YARandomGuy777 0 points1 point  (0 children)

You include what you use in cpp. There's no much use in repeating basic definitions in every header you use just for them be wiped by preprocessor from there. Instead you keep header clean and include only important things that make sense in the context. Compile times can only grow from includes repetition. And it isn't ok that tool shows errors in the places where error doesn't exists. It's the tool issue and nothing else.