typedef struct
{
list<int> lc;
} x;

for( li = x.lc.begin(); li != x.lc.end(); li++ )
{
}

gives the error below:

expected primary-expression before '.' token

Any ideas?