//C++引用类型与传入类型需要严格对应
//定义int类型变量
static int SEGMENT_SIZE;
//编写unsigned int类型引用
void removeRange(rTArr arr[], unsigned int &size, int startPosition, int count)
//报错
error: no matching function for call to 'insertArr(Segment [1024], int&, int, ProcessSegment::headSegLengthProcess(int, int)::<lambda()>)'
//变更变量类型为unsigned int编译通过
error: no matching function for call to 解决方法
最新推荐文章于 2024-05-14 18:31:48 发布