[
https://issues.apache.org/jira/browse/THRIFT-4762?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
James E. King III resolved THRIFT-4762.
---------------------------------------
Resolution: Fixed
Assignee: James E. King III
Fix Version/s: 0.13.0
> C++: Applied some C++11 refactorings to the runtime library and compiler
> ------------------------------------------------------------------------
>
> Key: THRIFT-4762
> URL: https://issues.apache.org/jira/browse/THRIFT-4762
> Project: Thrift
> Issue Type: Improvement
> Components: C++ - Compiler, C++ - Library, Tutorial
> Reporter: Sebastian Zenker
> Assignee: James E. King III
> Priority: Major
> Labels: Breaking-Change
> Fix For: 0.13.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> I basically used clang-tidy to apply the following C++11 refactorings (which
> make very much sense to me)
> * make use of override keyword whenever a virtual function is overwritten
> * make use of auto keyword for iterators
> * make use of auto keyword when every a redundancy can be avoided, e.g.
> uint32_t len = static_cast<uint32_t>(str.length());
> auto len = static_cast<uint32_t>(str.length());
> * replaced NULL with nullptr
> * make use of explicitly-defaulted function definition
> Additionally, I applied some more const-correctness to some functions.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)