summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/catch/include/external/clara.h
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/catch/include/external/clara.h')
-rw-r--r--3rdparty/catch/include/external/clara.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/3rdparty/catch/include/external/clara.h b/3rdparty/catch/include/external/clara.h
index 369c1b76c38..a999a37bf16 100644
--- a/3rdparty/catch/include/external/clara.h
+++ b/3rdparty/catch/include/external/clara.h
@@ -396,9 +396,12 @@ namespace Clara {
inline void convertInto( std::string const& _source, std::string& _dest ) {
_dest = _source;
}
+ char toLowerCh(char c) {
+ return static_cast<char>( ::tolower( c ) );
+ }
inline void convertInto( std::string const& _source, bool& _dest ) {
std::string sourceLC = _source;
- std::transform( sourceLC.begin(), sourceLC.end(), sourceLC.begin(), ::tolower );
+ std::transform( sourceLC.begin(), sourceLC.end(), sourceLC.begin(), toLowerCh );
if( sourceLC == "y" || sourceLC == "1" || sourceLC == "true" || sourceLC == "yes" || sourceLC == "on" )
_dest = true;
else if( sourceLC == "n" || sourceLC == "0" || sourceLC == "false" || sourceLC == "no" || sourceLC == "off" )