“std::pair<K,E> &std::pair<K,E>::operator =(volatile const std::pair<K,E> &)”: 尝试引用已删除的函数

身为菜鸡,不懂像下图中这样初始化为什么会出问题,等了解透彻后再详细写

 

 

解决方法:

BinaryTreeNode(const T& theElement):element(theElement){.......}

posted @ 2021-01-30 15:18  不知起什么名字  阅读(243)  评论(0编辑  收藏  举报