The best way of inputting a literal integer into a stream buffer

前端 未结 0 752
难免孤独
难免孤独 2021-02-20 09:21

I have two methods to write a literal integer into a stream buffer for RPC:

method 1:

std::stringstream ss; 
ss << uint16_t(1);
<         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题