Y
Hacker News
new
|
ask
|
show
|
jobs
by
ncmncm
2331 days ago
Returning them by value is fine. *RVO avoids inefficiencies.
But it would often be better to make a move-only value type, and return that instead.