Fixed std::tolower ambiguity

This commit is contained in:
Craig Hutchinson 2015-12-03 15:52:14 +00:00
parent 8c80abe2db
commit bcab4455c2

View File

@ -24,7 +24,7 @@ namespace Catch {
return s.find( infix ) != std::string::npos; return s.find( infix ) != std::string::npos;
} }
void toLowerInPlace( std::string& s ) { void toLowerInPlace( std::string& s ) {
std::transform( s.begin(), s.end(), s.begin(), std::tolower ); std::transform( s.begin(), s.end(), s.begin(), static_cast<int(*)(int)>(std::tolower) );
} }
std::string toLower( std::string const& s ) { std::string toLower( std::string const& s ) {
std::string lc = s; std::string lc = s;