You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/02/16 20:21:42 UTC
[jira] [Commented] (THRIFT-3921) C++ code should print enums as
strings
[ https://issues.apache.org/jira/browse/THRIFT-3921?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15870637#comment-15870637 ]
ASF GitHub Bot commented on THRIFT-3921:
----------------------------------------
Github user jeking3 commented on the issue:
https://github.com/apache/thrift/pull/1083
I'm going to pick this up and implement it in the context of THRIFT-4060. The compiler will emit a declaration for operator << of an enumeration, but the emitter for the definition of same will be optional.
> C++ code should print enums as strings
> --------------------------------------
>
> Key: THRIFT-3921
> URL: https://issues.apache.org/jira/browse/THRIFT-3921
> Project: Thrift
> Issue Type: Improvement
> Components: C++ - Compiler
> Reporter: Vivek Jain
>
> THRIFT-2067 added {{operator<<}} to the C++ generated code, which is great, but enums are printed as numbers rather than their string representation. It would be great if the generated code printed them as a string instead. There might be some backwards-compatibility concerns (if users have already defined their own versions, then thrift's version would cause compile errors), not sure how important you guys think those are.
> Other thoughts/concerns? I am willing to work on a patch if no one else is able to work on it.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)