我正在尝试将矩形对象插入树中。这是插入功能的实现。
void TwoDimTree::insertNewNode(Rectangle dataIn)
{
insertNewRectangleUtility((&tree), dataIn);
}
void TwoDimTree::insertNewRectangleUtility(TwoDimTree** temp, Rectangle dataIn)
{
//code here...
}
编译器在第三行给出错误 C2664(cannot convert parameter 2 from Rectangle to Rectangle):
insertNewRectangleUtility((&tree), dataIn);
我应该怎么办?