作者suspect1 (嫌犯)
看板EE_DSnP
标题[问题] 错误讯息
时间Thu Dec 14 23:43:23 2006
请问以下是什麽意思?
memTest.cpp:77: error: passing `const std::string' as `this' argument of
`std::b asic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>
::erase(typename _Alloc::size_type, typename _Alloc::size_type)
[with _CharT = c har, _Traits = std::char_traits<char>,
_Alloc = std::allocator<char>]' discards qualifiers
发生错误这行我写的是
memTest.cpp:77 -> option.erase() ;
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.112.4.242
1F:推 timrau:option的data type? 12/14 23:47
2F:→ timrau:而且erase()应该需要传入至少一个iterator吧? 12/14 23:47