祝大家有美好的一天!我有:
“A类.h”
class ClassA
{
....
public:
priority_queue<OBJECT*, vector<OBJECT*>, compound_objectNS::compare> m_prior_queue_Objects;
....
}
“B类.h”
class ClassB
{
void someFunction(void);
ClassA* m_network;
}
“B类.cpp”
void ClassB::someFunction(void)
{
vector<Compound_object*>::const_iterator vit;
vit = this->m_network->m_prior_queue_Objects.top();
- 在这里我从 iSense 得到 -错误没有运算符“=”匹配这个操作数。怎么了?!}
更新:typedef Compound_object* OBJECT*