Why not include all the standard headers always?

后端 未结 7 794
攒了一身酷
攒了一身酷 2021-01-03 19:02

I am reading Herb Sutter\'s More Exceptional C++ and item 37 on forward declarations says:

Never #include a

7条回答
  •  失恋的感觉
    2021-01-03 19:43

    When a header changes, programs affected change. Changed programs need to be tested. Being selective minimized exposure and hence testing.

提交回复
热议问题