Skip to content

string copy operation in parse function is useless #1209

@ayrb13

Description

@ayrb13

document_.assign(document.begin(), document.end());

there is string copy operation while we use reader to parse json from std::string. I think it is useless, we can directly use document param, there is no need to copy it.
could someone explain it for me, thanks

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