#include <map>
#include <set>
using namespace std;
map <string, set<pair<int, set<int>>>> dictonary;
int s()
{
for (auto & i : dictonary["abc"])
{
i.second.insert(2); //error C2663
}
}
C2663:“std::_Tree>::insert”:5 个重载对“this”指针没有合法转换。
i.second
被编译器认为是const
合格的,因此禁止插入。
如果它不是错误,我该如何操作它?