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

Denis  edited comment on THRIFT-3928 at 9/15/16 6:45 AM:
---------------------------------------------------------

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:
{code}
class Foo
{
    public: 
    Foo();
};
int main()
{
   Foo f;
   return 0;
}
{code}
If we try compile this code, we will get error “undefined reference to 
`Foo::Foo()'”.

  


was (Author: denis.korovyakovs...@gmail.com):
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