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 2015/04/17 16:51:00 UTC
[jira] [Commented] (THRIFT-2836) Optionally generate C++11
MoveConstructible types
[ https://issues.apache.org/jira/browse/THRIFT-2836?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14499940#comment-14499940 ]
ASF GitHub Bot commented on THRIFT-2836:
----------------------------------------
Github user flandr commented on the pull request:
https://github.com/apache/thrift/pull/271#issuecomment-94001280
Of course, and it was https://issues.apache.org/jira/browse/THRIFT-2836 & was merged. Not sure exactly how, tho clearly not through this interface ;)
> Optionally generate C++11 MoveConstructible types
> -------------------------------------------------
>
> Key: THRIFT-2836
> URL: https://issues.apache.org/jira/browse/THRIFT-2836
> Project: Thrift
> Issue Type: New Feature
> Components: C++ - Compiler
> Affects Versions: 1.0
> Reporter: Nate Rosenblum
> Assignee: Nate Rosenblum
> Fix For: 0.9.3
>
>
> Presently the cpp compiler only emits copy constructors for generated Thrift types. This is sub-optimal when passing types as parameters to std::bind when there are container fields that have move-constructible STL implementations. Adding rvalue constructors & assignment operators will avoid copies in these cases.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)