错误:没有与指定类型匹配的重载函数 "BST<ValueType>::remove" 实例

class BST
{
private:
    struct Cell
    {
        //略
    };
    Cell *remove(ValueType element,Cell *cell,Cell *parrent);
    
public:
    //略
    void remove(ValueType);
};


template<typename ValueType>
Cell *BST<ValueType>::remove()    //此处报错,说Cell是未识别的类型
{
    //略
}

template<typename ValueType>
void BST<ValueType>::remove(ValueType element)
{
    //略
}

c++:

报错:没有与指定类型匹配的重载函数 "BST<ValueType>::remove" 实例

其中Cell类型在类BST的private里面写的,那怎样才能使用这个自定义的数据类型呢?

Cell *BST::remove()改成void BST::remove()