Iterating through boost ptr_vector
Posted
by Ockonal
on Stack Overflow
See other posts from Stack Overflow
or by Ockonal
Published on 2010-05-26T16:49:32Z
Indexed on
2010/05/26
16:51 UTC
Read the original article
Hit count: 194
Hello, I have a ptr_vector list of my own objects. Something like this:
boost::ptr_vector<SomeClass> *list;
list.push_back(new SomeClass()>;
...
BOOST_FOREACH(SomeClass *tempObj, list) // [x]
{
tempObj->...
}
>‘boost::ptr_vector<SomeClass>*’ is not a class, struct, or union type
© Stack Overflow or respective owner