Why can't Codan find size_t

前端 未结 5 809
南旧
南旧 2020-12-31 11:17

I\'ve just started using Eclipse Indigo (coming from Galileo) and I\'m getting little red bugs in the gutter for every use of size_t.

5条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2020-12-31 11:28

    To make sure to get size_t you should #include the header ; then, it would be std::size_t, unless you also put a using namespace std or a using std::size_t.

提交回复
热议问题