babyboss
March 18th, 2008, 02:42 PM
I have a few lines of code like the following:
template <typename DataType>
inline DataType Digraph<DataType>::data(int k) const{
return myAdjacencyLists[k].data;
}
After I compiled it, the compiler keeps complaining "Error: expected initializer before '<' token " in the inline DataType line.
Thank you
template <typename DataType>
inline DataType Digraph<DataType>::data(int k) const{
return myAdjacencyLists[k].data;
}
After I compiled it, the compiler keeps complaining "Error: expected initializer before '<' token " in the inline DataType line.
Thank you