【发布时间】:2010-05-26 16:49:32
【问题描述】:
我有一个我自己的对象的 ptr_vector 列表。像这样的:
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
【问题讨论】:
标签: boost loops ptr-vector