I have 2 structs as follows:
I need to do the following :Code:template <class T> struct VList { T wrd; VList<T> *nextVList, *nextRight; Vertex<T> *vTmpPtr; }; template <class T> struct Vertex { T wrd; int pathLength; Vertex<T> *nextVertex; };
vListHead->nextRight=tmp->vTmpPtr;
The error I receive is :
Cannot convert 'Vertex<String> *' to 'VList<String> *' in function Graph<String>::adjacencyList(Vertex<String> &)
Is there anyway I can do this??



LinkBack URL
About LinkBacks



can you show me how I can get the VList nextRight ptr to point to the vTmpPtr....sorry for this