Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

stl linked-list help please.

Status
Not open for further replies.

jjackman

Programmer
Jul 23, 2003
1
US
Hello everyone,
I created a linked list using the stl library like so:
list<class> name_of_list;
I initilized the list as a global yet when I access it from another area in my code it is empty. How can I call the list by reference. Thanks..
 
Don't know how did u initilize it.
Possibly it can be that you are initilizing it with the value from local objects and intead of copying data from object it puting that address and once u are out the scope the address is invalid.

Can you just put the piece of code for further calirification.

-Ramesh
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top