定义一个结构体,重载等号typedef struct stu_PathInPlan 
{
int PathLsh;
map<int , PPATROLSCHEDULETIME> ScheduleTime;
stu_PathInPlan &operator = (const stu_PathInPlan &other)  //如果此处加上const ,qqqq行就会报错,去掉就没有问题,这是怎么回事?
{
if (this == &other)
{
return *this;
}
PathLsh = other.PathLsh;
PPATROLSCHEDULETIME pTmp;
std::map<int,PPATROLSCHEDULETIME>::iterator it; 
it = other.ScheduleTime.begin();             //qqqqq
while(it != other.ScheduleTime.end())
{
pTmp = new (std::nothrow)PATROLSCHEDULETIME;
if (pTmp !=NULL)
{
*pTmp = *(it->second);
ScheduleTime[pTmp->Num] = pTmp;
}
it++;
}
}
}编译错误如下 :
Error 7 error C2679: binary '=' : no operator found which takes a right-hand operand of type 'std::_Tree<_Traits>::const_iterator' (or there is no acceptable conversion)