empiredan opened a new issue, #1220:
URL: https://github.com/apache/incubator-pegasus/issues/1220

   Some classes such as `rpc_channel` are based on template class 
`customized_id`. Currently they can only be formatted by 
[{fmt}](https://github.com/fmtlib/fmt) using `to_string()`. For example,  in 
`src/runtime/rpc/asio_net_provider.cpp`, there are codes as below:
   ```c++
       CHECK(channel == RPC_CHANNEL_TCP || channel == RPC_CHANNEL_UDP,
             "invalid given channel {}",
             channel.to_string());
   ```
   
   To simplify the formatting, operator `<<` can just be overloaded which is 
supported by [{fmt}](https://github.com/fmtlib/fmt). 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to