Is there anyway to figure out what STL header file has not been included directly?

前端 未结 2 1803
小鲜肉
小鲜肉 2021-01-20 12:06

Our product uses C++ as the programming language. One annoying issue of using C++ STL is that we forget to include the necessary header files, because the file may have been

2条回答
  •  遇见更好的自我
    2021-01-20 12:14

    You can use a common_includes.h file that includes all necessary files there, and include that file everywhere you need. This will simplify the situation and will help out forgetting to include some file. At least you will forget it only one time :).

提交回复
热议问题