Apr 13, 2010 at 4:45pm UTC
I have Structure
typedef struct{
char* id;
char* name;
char* state;
}productInfoT;
I created list of this structure
typedef list<roductInfoT> productListT;
and I can't change the definition of this structure...
some how i got two list of these type lets say List1, List2;
both have the type of productListT
Now i want to concatenate these two list.
when i performed basic operations on these list like begin(), end(), push_back(), insert()
I got the error saying that List1(productListT) is non-class type...
Apr 13, 2010 at 5:23pm UTC
Post some code. The lines that cause errors at least. I just don't seem to understand what is operation List1(productListT) is supposed to do... Do you expect a constructor? Anyway, productListT is a type name and type name is almost never inside () parentheses...
Apr 13, 2010 at 5:36pm UTC
List1(productListT)
through this m just showing that list1 is a type of productListT.
m performing simple operations on the list..
list1.begin(), list2.end();
but not able to perform.............
its showing error like list1 is non-class type.