Skip to content

State::name returns a string copy #2001

@romintomasetti

Description

@romintomasetti

I am not sure why the following line returns a copy of the name string:

std::string name() const { return name_; }

If there is no particular reason, I can make a PR to return by const auto&.

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