fix Issue 11224 - Inlining stops NRVO