Skip to content

fastring 直接<< u8是空的,转成u16就正常了 #175

Answered by idealvin
tiantianaixuexi asked this question in Q&A
Discussion options

You must be logged in to vote
  • C++ 中 char, signed char, unsigned char 是 3 种不同的类型,std::ostream 对这 3 种类型,都是输出字符。
  • int8 有些系统定义为 signed char,uint8 有些系统定义为 unsigned char。
  • 若 int8,uint8 输出为整数,可能与 std::ostream 行为不一致。

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by idealvin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #174 on August 31, 2021 12:38.