Skip to content

Using array.append(rvalue) will create a copy of rvalue rather than moving it. #677

Closed
@rosca

Description

@rosca

Value& Value::append(Value&& value) { return (*this)[size()] = value; }
should become
Value& Value::append(Value&& value) { return (*this)[size()] = std::move(value); }
in order to call the move constructor.

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