[
https://issues.apache.org/jira/browse/THRIFT-4867?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sylwester Lachiewicz resolved THRIFT-4867.
------------------------------------------
Resolution: Fixed
The C++ generator emits {{operator<}} for structs (multiple emission sites in
[compiler/cpp/src/thrift/generate/t_cpp_generator.cc|https://github.com/apache/thrift/blob/master/compiler/cpp/src/thrift/generate/t_cpp_generator.cc]).
Resolving as Fixed.
> C++ operator< implementation is not generated on structs
> --------------------------------------------------------
>
> Key: THRIFT-4867
> URL: https://issues.apache.org/jira/browse/THRIFT-4867
> Project: Thrift
> Issue Type: Improvement
> Components: C++ - Compiler
> Affects Versions: 0.12.0
> Environment: all
> Reporter: Daniel Haensse
> Priority: Minor
> Attachments:
> thrift-0.12.0_t_cpp_generator_struct_less_operator.patch,
> thrift-0.12.0_t_cpp_generator_struct_less_operator_DebugProtoTest_extras.cpp.patch,
> thrift-0.12.0_t_cpp_generator_struct_operator_less_ThriftTest_extras.patch
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> When using struct in list, list and set, the operator< is required.
> Unfortunately the c++ compiler even in the latest release does not generate
> it. It would be very usefull to have the implementation generated, reducing
> unnecessary manual coding.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)