The code that follows is from a textbook. I am using g++ 4.5.0 via MinGW environment on Windows 7 Professional x64. This code should work as it's from a textbook, but I get an error. The code is a template class definition for a hash-table. The table (data) is an array where each position is a vector that will contain records.
hasht.h:23:9: error: 'vector' does not name a type
which is the line bolded in the code.
After doing some searching the best answer I have gotten is there is a problem with instantiating the variable, but I don't know how to fix the problem. I tried scoping the line using the namespace and the class name but that causes more errors (although I could have made a mistake doing that).
If anyone can help me I'd greatly appreciate it.
-taco