https://github.com/philsquared/Catch
Revision 79f01100e33cb28af06be67da9755e36566970dc authored by Billy Robert O'Neal III on 14 October 2016, 21:08:57 UTC, committed by Billy Robert O'Neal III on 14 October 2016, 21:16:21 UTC
Catch passes ::tolower into std::transform with string iterators.
::tolower has the signature int(int), which triggers a stealth narrowing
warning inside std::transform, because transform calls
*_Dest = _Fn(*_First), which implicitly narrows an int to a char.

For this particular application the narrowing is fine, so explicitly
narrow in a lambda.
1 parent ccf7f28
History
Tip revision: 79f01100e33cb28af06be67da9755e36566970dc authored by Billy Robert O'Neal III on 14 October 2016, 21:08:57 UTC
Fix transform narrowing warnings
Tip revision: 79f0110
File Mode Size
docs
include
projects
scripts
single_include
.gitattributes -rw-r--r-- 301 bytes
.gitignore -rw-r--r-- 390 bytes
.travis.yml -rw-r--r-- 3.8 KB
LICENSE_1_0.txt -rw-r--r-- 1.3 KB
README.md -rw-r--r-- 1.1 KB
catch-logo-small.png -rw-r--r-- 50.3 KB

README.md

back to top