Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有以下编译器 (g++ (GCC) 4.1.2 20071124) 警告
“有符号和无符号整数表达式之间的比较”
string a_str = ... if(a_str.rfind("<CDATA") == string::npos ) ...
这很奇怪。为什么这么标准的东西会产生警告?