I create a small โgeneralโ path to define a path that takes the type of the Board class where it will find the paths,
//T - Board class type template<class T> class PathFinder {...}
While Board also has a template for storing node type. (so that I can find paths in two-dimensional or three-dimensional vector spaces).
I would like to be able to declare and define a member function for PathFinder that will accept such parameters
//T - Board class type PathFinder<T>::getPath( nodeType from, nodeType to);
How can I perform type compatibility for a node T type and nodeType , which is passed to the function as a parameter?
source share