0

Does anyone know why I am getting an error on this line of code below? Thanks for you help in advance.

vector < vector < htNode<B> > > table;
5
Contributors
8
Replies
9
Views
6 Years
Discussion Span
Last Post by sdr001
0

Make sure you have at least this :

#include <vector>
using std::vector;


struct B{};

template<typename T>
struct Node{};

int main(){
 vector< vector< Node<B> > > table;
 return 0;
0

Here is my code concerning the error:

Note: There is more below but I didn't feel like it was necessary to paste.

template <class A>
struct htNode
{
string key;
A index;
};


template <class B>
class ht //(character ternary tree)
{
vector < vector < htNode<B> > > table;
int tabSz;
unsigned mask;
unsigned djb_hash(const string &key, int len);



public:

Edited by sdr001: n/a

0

I see nothing wrong with the code you've posted. Please post a small, complete file together with the error message you get when you try to compile it.

0

Man post like this pisses me off. People should have at least the common sense to post a complete example and the error or problems they are having. They think we can read their minds or something.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.