Update catch_common.hpp

This commit is contained in:
Craig Hutchinson 2015-12-03 14:37:14 +00:00
parent f31dc1253e
commit 4d5f7a8826

View File

@ -22,7 +22,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(), ::tolower ); std::transform( s.begin(), s.end(), s.begin(), std::tolower );
} }
std::string toLower( std::string const& s ) { std::string toLower( std::string const& s ) {
std::string lc = s; std::string lc = s;