URGENT Problem Related to linked list of Struct

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...
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...
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.
Topic archived. No new replies allowed.