Error: “no match for operator+” , for list iterator

前端 未结 4 1912
情书的邮戳
情书的邮戳 2020-12-11 18:27

For the code below, i am getting the error in title for line

while((*(It2 + code)).exists){


void locatetohashtable(st         


        
4条回答
  •  旧巷少年郎
    2020-12-11 18:48

    An iterator for an std::list is bidirectional, so it does not support +(int). The only supported move operations are ++ and --.

提交回复
热议问题