T
Toby
Hail and well met.
I am trying to pass a templated struct to another template. Ex:
template <class VertexType>
struct EdgeNode {
VertexType index;
int weight;
};
template <class VertexType>
struct VertexNode {
VertexType info;
UnsortedType<EdgeNode<VertexType>> edgeList;
};
is this not legal? I am getting an error along the lines of:
c:\documents and settings\toby\my
documents\cpp\assignment6\graphtypelinked.h(16) : error C2146: syntax
error : missing ',' before identifier 'edgeList'
among others.
I am trying to pass a templated struct to another template. Ex:
template <class VertexType>
struct EdgeNode {
VertexType index;
int weight;
};
template <class VertexType>
struct VertexNode {
VertexType info;
UnsortedType<EdgeNode<VertexType>> edgeList;
};
is this not legal? I am getting an error along the lines of:
c:\documents and settings\toby\my
documents\cpp\assignment6\graphtypelinked.h(16) : error C2146: syntax
error : missing ',' before identifier 'edgeList'
among others.