Quote Originally Posted by ZhiYi View Post
I then instantiated the path search using this statement:

Graph_PathSearch<NavGraph*> StartSearch(*m_pGraph,startNode,destNode);


But the compiler produced a long string of compile errors. However, when I changed the template parameter from <NavGraph*> to <NavGraph>, there were no more compile errors.
Maybe the errors were legitimate. It's impossible to know if you don't post your entire code.

Second, if the pointer is typedef'ed, it may resolve some of the errors:
Code:
typedef  NavGraph* NavGraphPtr;
And then use NavGraphPtr.

Regards,

Paul McKenzie