Fix EOF implicit conversion

This commit is contained in:
Colby Haskell 2023-11-05 11:06:15 -05:00
parent df1dda712e
commit 283d547686
2 changed files with 10 additions and 0 deletions

View File

@ -150,6 +150,11 @@ struct char_traits<unsigned char> : std::char_traits<char>
{
return static_cast<int_type>(c);
}
static int_type eof()
{
return static_cast<int_type>(EOF);
}
};
// Explicitly define char traits for signed char since it is not standard

View File

@ -6233,6 +6233,11 @@ struct char_traits<unsigned char> : std::char_traits<char>
{
return static_cast<int_type>(c);
}
static int_type eof()
{
return static_cast<int_type>(EOF);
}
};
// Explicitly define char traits for signed char since it is not standard