You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Nitay Joffe (JIRA)" <ji...@apache.org> on 2009/07/09 08:44:16 UTC
[jira] Commented: (THRIFT-539) struct hash and print methods for
C++
[ https://issues.apache.org/jira/browse/THRIFT-539?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12729071#action_12729071 ]
Nitay Joffe commented on THRIFT-539:
------------------------------------
True, but you can't just do e.g. "cout << myStruct << endl;" which I've found helps a lot in debugging.
> struct hash and print methods for C++
> -------------------------------------
>
> Key: THRIFT-539
> URL: https://issues.apache.org/jira/browse/THRIFT-539
> Project: Thrift
> Issue Type: New Feature
> Components: Compiler (C++), Library (C++)
> Reporter: Nitay Joffe
> Priority: Minor
>
> The current thrift compiler for C++ generates methods for structs like operator== and operator< since it uses maps,sets, etc but it does not generate a hash() method or a human readable print() method.
> The idea of this issue is to add functionality to the C++ compiler to generate:
> # A boost hash compatible hash_value() function. This should probably be an option to the compiler as it adds a dependency in generated code on boost.
> # An operator<< function for printing structs in a nice form. This should be safe to always do?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.