Quote:Original post by M4rtin
For Example:
Unit[1] <- The Unit I need.
Why do you need this one specifically?
How do you know that that's the one you need, and not Unit[2] for example?
(If you store them in a std::list instead, you should be able to use pointers, but that may not be the best idea.)
Quote:Original post by Ignifex
Although I do not know what solution you decided to take, I do not really see what you mean by "loosing" the pointer.
He meant that he loses it, presumably. Although I suppose it makes a kind of sense to describe a so-called "dangling" pointer as "loose" ;)
[Edited by - Zahlman on December 28, 2008 3:53:30 AM]