编译正常,运行的时候报错
terminate called after throwing an instance of ‘std::logic_error’
我的错误原因是在定义结构体内变量并初始化时,误把整形赋值给了string变量
struct LabelAndPoint
{
std::string frame_id =0;
};
解决办法
struct LabelAndPoint
{
std::string frame_id;
};