[ 
https://issues.apache.org/jira/browse/THRIFT-3817?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18112777#comment-18112777
 ] 

Sylwester Lachiewicz edited comment on THRIFT-3817 at 9/8/26 1:45 PM:
----------------------------------------------------------------------

The conflict came from {{cxxfunctional.h}} selecting {{<tr1/functional>}} and 
pulling in {{<tr1/tuple>}}. That header no longer exists in the tree — it went 
with the C++11 rework — so the redeclaration cannot occur. Resolving as Fixed.


was (Author: slachiewicz):
The C++ generator no longer emits {{std::tuple}} at all (zero references 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]),
 so the redeclaration conflict cannot occur. Resolving as Fixed.

> Redeclaration of std::tuple 
> ----------------------------
>
>                 Key: THRIFT-3817
>                 URL: https://issues.apache.org/jira/browse/THRIFT-3817
>             Project: Thrift
>          Issue Type: Bug
>          Components: C++ - Library
>    Affects Versions: 0.9.3
>            Reporter: Kurt Johnson
>            Priority: Major
>
> In /lib/cpp/src/thrift/cxxfunctional.h, the version of the functional header 
> is picked based on the compiler. Gcc defaults to <tr1/functional>. This 
> includes the <tr1/tuple> which causes a redeclaration error if the c++11 
> <tuple> has been used anywhere else.
> Thrift should default to using c++11 version of functional if the compiler 
> supports it.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to