Hi, I feel really stupid about this one... I can't figure out why every STL container I try works with regular types (int etc.) but not with class objects. What I want is a queue, but since I've never used them I tried deque and vectors to make sure, I always get the same result:
1 2 3 4 5
crawler.h:39:16: error: type/value mismatch at argument 1 in template parameter list for ‘template<class _Tp, class _Alloc> class std::vector’
vector<link> links;
^
crawler.h:39:16: error: expected a type, got ‘link’
crawler.h:39:16: error: template argument 2 is invalid
Yeah, I copied the error from when I tried with a vector, and the code from when I tried with a queue, it's the only change I made. Line 39 is line 29 in my post (removed bunch of unrelated comments on top). I'm using namespace std, I guess I added that while writing my post to make sure.
I was so tired yesterday I didn't try link links;
(Doesn't work in the header, works in other files)