const_iterator到迭代器C++错误

Pat*_*ini 4 c++ iterator const map

我正在尝试map使用以下代码块通过对象进行迭代:

for(map<int, vector>::iterator table_iter = table.being(); table_iter != table.end(); table_iter++)
{
    ...
}
Run Code Online (Sandbox Code Playgroud)

而且我一直在收到错误告诉我:

从const_iterator转换为请求的非标量类型迭代器

而且我似乎无法确定为什么迭代器将会const与 - const或- 或如何处理它.

dan*_*nca 8

map<int, vector>::const_iterator改为使用返回的map::begin.