6 ms·
If the author is reading: both complicated examples are the same.
by tom_ 14d ago
If the author is reading: both complicated examples are the same.
- quuxplusone 14d agoYeah, the second one is supposed to read `Apple&& Cat(Apple&& val) { return val; }` — but the return type's `&&` was omitted by accident.
- dkenyser 14d agoI 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.
- reactordev 12d agoIt's modern C++ so, a little of both I think. 20 years of it and I still have people saying "I should work on my fundamentals" so it's totally fine to be a bit of both.
- andreasfertig 12d agoSorry for that mistake! I fixed the last example. The post should make much more sense now.
- OptionOfT 12d agoYou probably don't pay for a copy or move there as well. -> You probably don't pay for a copy or move there either. (I'm Flemish and made that mistake before).