mirror of
https://github.com/catchorg/Catch2.git
synced 2025-07-04 00:25:31 +02:00

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 an inline function. This is identical to the issue that was fixed in pull request #728, just in a different place.