摘要:
下面这段代码会报错:报错信息为error: no matching function for call to ‘ptr_fun(unresolved overloaded function type)#include algorithm#include cctype#include stringconst std::stringStrToUpper(std::string s){std::transform(s.begin(), s.end(), s.begin(),std::ptr_fun(std::toupper));return s;}SolutionExplicitly 阅读全文