This sounds like a great idea.
I've been thinking about a related off-by-default warning that fires
whenever NRVO "fails", as a diagnostic optimization tool. But maybe
the false positive rate (i.e. the places where we return by value and
don't care about NRVO) would be too high?
- Kim