logoalt Hacker News

tom_today at 12:44 PM2 repliesview on HN

If the author is reading: both complicated examples are the same.


Replies

quuxplusonetoday at 12:56 PM

Yeah, the second one is supposed to read `Apple&& Cat(Apple&& val) { return val; }` — but the return type's `&&` was omitted by accident.

dkenysertoday at 2:08 PM

I swear I was staring at these two examples for longer than I care to admit wondering if I was just blind or dumb or both.