Alright so this code is nearing completion, but I can't seem to get rid of this annoying compiler error and it is making absolutely no sense to me...
What the compiler is yelling at me about is on line 124 and it is saying "error: ‘class Link<int>’ has no member named ‘new_link’". This is absolutely confusing me because I am declaring "new_link" a couple lines up, and on top of that the error is not occurring at any of the other lines that I used new_link in that function, nor does it cause issues in the push_front() function.
Anyone know why this is happening? It's driving me insane! >.<
What the compiler is yelling at me about is on line 124 and it is saying "error: ‘class Link<int>’ has no member named ‘new_link’". This is absolutely confusing me because I am declaring "new_link" a couple lines up, and on top of that the error is not occurring at any of the other lines that I used new_link in that function, nor does it cause issues in the push_front() function.
Yeah - but if you look at the push_back function and compare it to the push_front function function - you should see the that that particular line from the push_back function makes no sense (is wrong as the compiler points out).