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, 杨继超 <[email protected]> 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.
>

Reply via email to