/in/Compile/BinarySearchTree_compile_check.cpp: In function 'int main()':
/in/Compile/BinarySearchTree_compile_check.cpp:86:14: error: 'const class BinarySearchTree<int>' has no member named 'traverse_preorder'; did you mean 'traverse_inorder'?
const_tree.traverse_preorder(cout);
^~~~~~~~~~~~~~~~~
traverse_inorder
/in/Compile/BinarySearchTree_compile_check.cpp:87:19: error: 'const class BinarySearchTree<Duck, DuckWealthLess>' has no member named 'traverse_preorder'; did you mean 'traverse_inorder'?
const_duck_tree.traverse_preorder(cout);
^~~~~~~~~~~~~~~~~
traverse_inorder
/in/Compile/BinarySearchTree_compile_check.cpp:116:21: error: no match for 'operator=' (operand types are 'BinarySearchTree<int>::Iterator' and 'void')
it = tree.insert(0);
^
In file included from /in/Compile/BinarySearchTree_compile_check.cpp:4:0:
/in/BinarySearchTree.h:173:11: note: candidate: BinarySearchTree<int>::Iterator& BinarySearchTree<int>::Iterator::operator=(const BinarySearchTree<int>::Iterator&)
class Iterator {
^~~~~~~~
/in/BinarySearchTree.h:173:11: note: no known conversion for argument 1 from 'void' to 'const BinarySearchTree<int>::Iterator&'
/in/BinarySearchTree.h:173:11: note: candidate: BinarySearchTree<int>::Iterator& BinarySearchTree<int>::Iterator::operator=(BinarySearchTree<int>::Iterator&&)
/in/BinarySearchTree.h:173:11: note: no known conversion for argument 1 from 'void' to 'BinarySearchTree<int>::Iterator&&'
/in/Compile/BinarySearchTree_compile_check.cpp:117:36: error: no match for 'operator=' (operand types are 'BinarySearchTree<Duck, DuckWealthLess>::Iterator' and 'void')
duck_it = duck_tree.insert(Duck());
^
In file included from /in/Compile/BinarySearchTree_compile_check.cpp:4:0:
/in/BinarySearchTree.h:173:11: note: candidate: BinarySearchTree<Duck, DuckWealthLess>::Iterator& BinarySearchTree<Duck, DuckWealthLess>::Iterator::operator=(const BinarySearchTree<Duck, DuckWealthLess>::Iterator&)
class Iterator {
^~~~~~~~
/in/BinarySearchTree.h:173:11: note: no known conversion for argument 1 from 'void' to 'const BinarySearchTree<Duck, DuckWealthLess>::Iterator&'
/in/BinarySearchTree.h:173:11: note: candidate: BinarySearchTree<Duck, DuckWealthLess>::Iterator& BinarySearchTree<Duck, DuckWealthLess>::Iterator::operator=(BinarySearchTree<Duck, DuckWealthLess>::Iterator&&)
/in/BinarySearchTree.h:173:11: note: no known conversion for argument 1 from 'void' to 'BinarySearchTree<Duck, DuckWealthLess>::Iterator&&'
/in/Compile/BinarySearchTree_compile_check.cpp:126:9: error: assignment of read-only location 'it.BinarySearchTree<int>::Iterator::operator*()'
*it = 50;
^~
/in/Compile/BinarySearchTree_compile_check.cpp:127:21: error: passing 'const Duck' as 'this' argument discards qualifiers [-fpermissive]
*duck_it = Duck(50);
^
/in/Compile/BinarySearchTree_compile_check.cpp:8:7: note: in call to 'constexpr Duck& Duck::operator=(Duck&&)'
class Duck {
^~~~
/in/Compile/Makefile:30: recipe for target 'BinarySearchTree_compile_check.exe' failed
make: *** [BinarySearchTree_compile_check.exe] Error 1