I have a code which is near to this one

struct first 
{
    int data ;
    list <second> seconds ;
};

struct second
{
    int data ;
    list <first>::iterator vert ;
};

how i could get rid of the circular reference problem in c++

note : i must put the code in the same file .

thanks for ur patience

Recommended Answers

All 3 Replies

hi everyone,
I have no idea what you are saying. Circular referece???????
Try reposting and explain as clearly as you can

Yours Sincerely

Richard West

thank you Dave that solve my problem

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.