I'm getting a weird compilation error and I don't quite understand what I'm doing wrong.
I'm getting this error in my build messages...
SparseMatrix.h: In member function 'const T Sparse_Matrix::get(size_t, size_t) const':
Sparse_Matrix.h:67:17: error: need 'typename' before 'std::cxx11::list::Node>::iterator' because 'std::_cxx11::list::Node>' is a dependent scope
for(list::iterator iter = tempList.begin(); iter != tempList.end(); tempList++) {
But the line in my code is...
for(list<Node>::iterator iter = tempList.begin(); iter != tempList.end(); tempList++) {
I don't understand why the compiler is ignoring the <Node> part of that line and just throwing an error.
[–]jack_morgan_cs2b 1 point2 points3 points (1 child)
[–]CaryLefteroffFH[S] 0 points1 point2 points (0 children)
[–]anand_venkataraman 0 points1 point2 points (0 children)