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

witmy

关注

阅读 11

2024-03-14


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

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)

0 0 举报