Skip to content

Fix return arguments in functions to use rvalue references. #41

@bryan-lunt

Description

@bryan-lunt

See the article by Stroustrup : http://www.artima.com/cppsource/rvalue.html

Basically, if you are returning into a reference provided as an argument, you should use && references.

ex:
void myfunction(int&& return_into){...}

rather than void myfunction(int& return_into){...}

It will improve some compilation properties.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions