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

Denis  commented on THRIFT-3928:
--------------------------------

Yes, it is insufficient. We got error "undefined reference" when used these 
methods. 
Constructors are compiler-supplied when it doesn`t declared in header or when 
exists 'default' statement.
For example:
class Foo
{
    public: 
    Foo();
};

int main()
{
   Foo f;
   return 0;
}
If we try compile this code, we will get error “undefined reference to 
`Foo::Foo()'”.

  

> CPP generator doesn`t generate implementations of constructors, operators and 
> setters for function helpers
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: THRIFT-3928
>                 URL: https://issues.apache.org/jira/browse/THRIFT-3928
>             Project: Thrift
>          Issue Type: Bug
>          Components: C++ - Compiler
>    Affects Versions: 0.9.3
>            Reporter: Denis 
>              Labels: easyfix
>         Attachments: thrift_cpp_generator.patch
>
>
> cpp generator  doesn`t  generate implementations of constructors, operators  
> for function and service helpers in *Service.cpp 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to