You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pegasus.apache.org by GitBox <gi...@apache.org> on 2022/11/03 12:38:40 UTC

[GitHub] [incubator-pegasus] empiredan opened a new issue, #1220: Overload operator "<<" for customized_id to support formatting by {fmt}

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: dev-unsubscribe@pegasus.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pegasus.apache.org
For additional commands, e-mail: dev-help@pegasus.apache.org


[GitHub] [incubator-pegasus] empiredan closed issue #1220: Overload operator "<<" for customized_id to support formatting by {fmt}

Posted by GitBox <gi...@apache.org>.
empiredan closed issue #1220: Overload operator "<<" for customized_id to support formatting by {fmt}  
URL: https://github.com/apache/incubator-pegasus/issues/1220


-- 
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: dev-unsubscribe@pegasus.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pegasus.apache.org
For additional commands, e-mail: dev-help@pegasus.apache.org