Merge pull request #12997 from tygyh/Remove-constness Constness of 'result' prevents automatic move [performance-no-automatic-move]