0
点赞
收藏
分享

微信扫一扫

terminate called after throwing an instance of ‘std::logic_error‘


编译正常,运行的时候报错

terminate called after throwing an instance of ‘std::logic_error’

我的错误原因是在定义结构体内变量并初始化时,误把整形赋值给了string变量

struct LabelAndPoint
{
	std::string frame_id =0;

};

解决办法

struct LabelAndPoint
{
	std::string frame_id;

};


举报

相关推荐

0 条评论