C++ 遍历 iterator has no member named

Posted 软件工程小施同学

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了C++ 遍历 iterator has no member named相关的知识,希望对你有一定的参考价值。

error: ‘class std::shared_ptr<dev::txpool::Vertex>’ has no member named ‘mapLocation’

不能写*it->mapLocation,要写(*it)->mapLocation

 

以上是关于C++ 遍历 iterator has no member named的主要内容,如果未能解决你的问题,请参考以下文章

celery:Unrecoverable error: AttributeError("'unicode' object has no attribute 'iter

c++ vector<string>用iterator遍历

C++中出现错误has no member named 'emplace_back怎么办?

c++ iterator 是啥意思

C++ 迭代器iterator的实现原理

Iterator和Iteratable的区别,介绍