Skip to content

Redundant Move in from_json #67

@fabmene

Description

@fabmene

In some paths within py::object from_json(const nl::json& j) the returned object is returned via std::move(obj);. This triggers a redundant-move warning in GCC 12.1, as the move prevents copy elision.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions