I have reached a problem and was wondering if someone could help me please.
在我的一个班级(例如班级1) 我
typef 强化:共享——吸收与设计;
typef st;
In another class (e.g. class2) I need to create a vector of this again, in order to iterate through this
因此,我试图做到以下几点:
class1::ImportTableObject& table = configPtr->getTable();
std::vector<class1::class-one-object>::const_iterator* iter = table.begin();
这造成了以下汇编错误:
cannot convret `__gnu_cxx::__normal_iterator<boost::shared_ptr<class1::class-one-object>*, std::vector<boost::shared_ptr<class1::class-one-object>,
std::alloctor<boost::shared_ptr<class1::class-one-object> > > to __gnu_cxx::__normal_iterator<const class1::class-one-object*, std::vector<class1::class-one-object>
等等
谁能帮助我?
事先感谢你