• lysdexic@programming.devOPM
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 年前

    It doesn’t look like it, otherwise you’d be aware that the whole point of this submission is that casting return values with std::move disables RVO.

      • lysdexic@programming.devOPM
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 年前

        If you were right, we wouldn’t have the motivation to look at this in EWG.

        I am right. Not benefiting from RVO does not mean you’re harming anyone.

        Again, I recommend you read the submission and also the discussion.