Couldn't deduce template parameter while using dynamic object created with specified typename
I have been learning tree data structure for a while. I tried to implement tree using templates. I came up with an error while calling some function for input. This is the fragment where I am getting error. template <typename T> class Tree{ public: T data; vector<Tree<T>*>children; Tree(T data){ this->data=data; } }; template <typename T>… Read More Couldn't deduce template parameter while using dynamic object created with specified typename