The return value of following function is wrong:
std::basic_string.compare(size_type pos, size_type n, charT* s);
#include <iostream>
#include <string>
int main(){
std::string s("123");
const int re = s.compare(0,2,"123");
std::cout << re << std::endl;
return 0;
}
http://codepad.org/4pApykR5
Original issue reported on code.google.com by icestudent@gmail.com on 5 Apr 2011 at 9:04
Original issue reported on code.google.com by
icestudent@gmail.com
on 5 Apr 2011 at 9:04