HomePhabricator

SystemInitializerCommon fix compilation on linux

Description

SystemInitializerCommon fix compilation on linux

C++ defines two overloads of std::iscntrl. One in <cctype> and one in
<locale>. On linux we seem to include both which makes the std::erase_if
call ambiguous.

Wrap std::iscntrl call in a lambda to ensure regular overload
resolution.

Details

Committed
labathOct 18 2019, 4:47 AM
Parents
rL375220: [Arm][libsanitizer] Fix arm libsanitizer failure with bleeding edge glibc
Branches
Unknown
Tags
Unknown