We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
nasty_char_traits::to_char_type
1 parent 79210fe commit a8fc7ceCopy full SHA for a8fc7ce
libcxx/test/support/nasty_string.h
@@ -70,7 +70,7 @@ struct nasty_char_traits {
70
71
static constexpr int_type not_eof(int_type c) noexcept { return eq_int_type(c, eof()) ? ~eof() : c; }
72
73
- static constexpr char_type to_char_type(int_type c) noexcept { return char_type(c); }
+ static constexpr char_type to_char_type(int_type c) noexcept { return {static_cast<char>(c)}; }
74
75
static constexpr int_type to_int_type(char_type c) noexcept { return int_type(c.c); }
76
0 commit comments