Mike Copeland
2010-09-02 17:51:21 UTC
What is wrong with the following code? It's similar to other code
I've successfully written and used, but I'm getting a compiler
diagnostic on the "typedef" line (C2926). Please advise. TIA
struct Corrals
{
int corralNumber;
int corralLimit;
} corralWork;
typedef list<Corrals> CorralList;
CorralList corralData;
list<CorralList>::iterator corralIter;
I've successfully written and used, but I'm getting a compiler
diagnostic on the "typedef" line (C2926). Please advise. TIA
struct Corrals
{
int corralNumber;
int corralLimit;
} corralWork;
typedef list<Corrals> CorralList;
CorralList corralData;
list<CorralList>::iterator corralIter;