基类函数在继承类中不起作用

void CommandsTreeHandler::installTreeNodeProject(const string& inIdentifier, XPLMCommandRef inCommand) {
    const XPLMCommandRef command = getCommandRef(inIdentifier, inCommand);
    installTreeNode(inIdentifier, command, mCommandsRoot->getChildNodeAt(1)); // problem with third param 
}
class BaseTreeHandler {
    BaseTree<XPLMCommandRef, CommandsTree>* mCommandsRoot;
}
template <typename Data, typename T> class BaseTree;
class DataRefsTree;
class CommandsTree;
template <typename Data, typename T> class BaseTree : public DataTree<Data, BaseTree<Data, T>, STreeHolderSet<BaseTree<Data, T>, BaseTreeComparator>> {
template <typename Data, typename T, typename Holder = STreeHolderVector<T>> class DataTree : public STree<T, Holder> {
template <typename T, typename Holder = STreeHolderVector<T>> class STree {
    public:
        T* getChildNodeAt(size_t inIndex);
        const T* getChildNodeAt(size_t inIndex) const;
}

类型“ sasl :: BaseTree *”的参数与类型“ sasl :: CommandsTree *”的参数不兼容

如何解决?