Skip to content

Warnings about std::move vs. std::forward #272

@jwwalker

Description

@jwwalker

When I run the Clang static analyzer in Xcode 15.2 on an app using Parser, I get about 10 warnings like this:

warning: Forwarding reference passed to std::move(), which may unexpectedly cause lvalues to be moved; use std::forward() instead

One day I hope to understand std::move and std::forward well enough to know how much of a problem this is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions