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

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

解决方法:

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

原文地址:https://www.cnblogs.com/indifferent/p/14349171.html