thrift-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James E. King, III (JIRA)" <>
Subject [jira] [Closed] (THRIFT-2221) Generate c++ code with std::shared_ptr instead of boost::shared_ptr.
Date Thu, 14 Dec 2017 13:55:21 GMT


James E. King, III closed THRIFT-2221.

> Generate c++ code with std::shared_ptr instead of boost::shared_ptr.
> --------------------------------------------------------------------
>                 Key: THRIFT-2221
>                 URL:
>             Project: Thrift
>          Issue Type: Improvement
>          Components: C++ - Compiler, C++ - Library
>    Affects Versions: 0.9.1
>         Environment: C++11 compilers with std::shared_ptr support
>            Reporter: Chris Stylianou
>            Assignee: James E. King, III
>              Labels: c++11, compiler, thrift
>             Fix For: 0.11.0
> Most modern compilers now have full support for std::shared_ptr when enable with c++11
flags. It would be nice to have the option to generate code that uses this instead of boost::shared_ptr.
This would enable us to remove another boost dependency, on the road to a dependency-free
thrift library :)
> Solution summary (so you don't need to wade through the comments):
> A new header, <thrift/stdcxx.h>, creates the namespace apache::thrift::stdcxx and
aliases the proper std:: or boost:: constructs depending on the capabilities of the environment
and whether any build flags are used to force an override of this behavior.  All code throughout
the project now uses stdcxx:: for all smart_ptr and functional (bind, function, placeholders,
_1, _2, ...) constructs.

This message was sent by Atlassian JIRA

View raw message