Until DR1579 is implemented, redundant move should only be emitted when a parameter variable has the same type as the function return type and is returned. This removes the case where the returned type and the returned variable have different types. Also include a test to check for that the move constructor is used by checking the AST dump.
Details
Details
Diff Detail
Diff Detail