Are unused includes harmful in C/C++?

后端 未结 10 578
说谎
说谎 2020-12-23 14:27

What are the negative consequences of unused includes?

I\'m aware they result in increased binary size (or do they?), anything else?

10条回答
  •  执笔经年
    2020-12-23 15:01

    Well for one leaving them there only prolong the compile time and adds unnecessary compilation dependencies.

提交回复
热议问题