thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henrique Mendonça <henri...@apache.org>
Subject Re: a question about the tutorial example?
Date Wed, 05 Sep 2012 08:20:33 GMT
Hi,
I think this is like that to support (old) compilers with no named return
value optimization (http://en.wikipedia.org/wiki/Return_value_optimization).
I particularly don't like this syntax but a change on the c++ generator
would be necessary -- e.g. thrift --gen cpp:rvo_syntax
Patches welcome ;)
http://thrift.apache.org/docs/HowToContribute/

Cheers,
Henrique

On 5 September 2012 04:54, 杨继超 <jcyangzh@gmail.com> wrote:

> Hi, in the tutorial example, why sharedservcie's getStruct method
> would generate the funciton void getStruct(SharedStruct &, int
> key),but not SharedStruct getStruct(int key)?
>
> Thanks.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message