我有一个 std::map<std::string, std::string> 类型的 cont;
我想在 gdb 中查看 cont["some_key"]。当我尝试输入
p cont["some_key"]
时,出现如下错误信息:One of the arguments you tried to pass to operator[] could not be converted to what the function wants。
我使用的是 GNU gdb Red Hat Linux (6.3.0.0-1.162.el4rh) 版本。谢谢。