I am trying to make my first implementation of a AVL Tree. However when I compile and run the code, it does not output the value of the root. Any ideas?
I am using Microsoft Visual C++ 2010 express. Thanks in advance.
This is a common problem related to most vexing parse. On line 51 (the first line of your main function) you do not create an object - instead, because of the parentheses, you declare a function named AvlTree which takes no parameters and returns an instance of a AvlTree<int> by copy.