Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix format_as for non-const begin/end views #3955

Merged
merged 1 commit into from
May 13, 2024

Commits on May 13, 2024

  1. Fix format_as for non-const begin/end views

    base::format does not accept rvalues, using the result of format_as
    directly means it is passed one. Doesn't matter for ranges with a const
    begin and end, but filter_view caches, so it only has mutable begin/end.
    Use auto&& to avoid copy if format_as returns const ref
    Arghnews committed May 13, 2024
    Configuration menu
    Copy the full SHA
    ae42fbd View commit details
    Browse the repository at this point in the history