Vector报Expression: vector iterators incompatible崩溃错误
代码:
typedef struct tagOpenSrvAchieveCfg
{
WORD id;
WORD taskType;
vector<WORD> param1;
vector<WORD> param2;
vector<WORD> param3;
tagOpenSrvAchieveCfg()
{
memset(this,0,sizeof(*this));
}
}OPENSRVACHIEVECGF;
typedef struct tagOpenSrvAchieve
{
std::vector<OPENSRVACHIEVECGF> taskCfg;
tagOpenSrvAchieve()
{
memset(this,0,sizeof(*this));
}
}TAGOPENSRVACHIEVE;
使用崩溃
image.png
查了很久查到一篇文章:
image.png
网友评论