Skip to content

generated quickstarts shoudl use const& when iterating through lists #16394

Description

@scotthart

Instead of for (auto e : ListFoo()) use for (auto const& e : ListFoo()).

Activity

  1. added
    type: cleanup
    cpp: generator
    on Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cpp: generatortype: cleanup

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions