Re:Convincing C programmers to switch to C++: A look at huma...
by sqeaky on Friday June 02, 2017 @12:30PM
(#14471169)
Your link doesn't work for me. Can you perhaps just explain the difference? A twitter link is hardly a canonical source.
[ Parent
| on HN ]
Re:Convincing C programmers to switch to C++: A look at huma...
by Sean1708 on Friday June 02, 2017 @01:00PM
(#14471453)
There are some trailing characters in the link. But the tweet is
> decltype(auto) f1(){int x = 0; return x;}
> decltype(auto) f2(){int x = 0; return (x);}
> Latter, not former, returns reference to int.