Skip to content

[range.range] Redundant paragraph about expression variations LWG3915 #4431

Description

@JohelEGP

Expression variations kick in for "an expression that is non-modifying for some constant lvalue operand", but std::ranges::range's is an non-constant lvalue, so p2 is redundant.

Activity

  1. JohelEGP commented on Dec 24, 2020

    @JohelEGP
    ContributorAuthor

    I suppose that the change that clarified the template parameters' cv-qualification for purposes of equality-preservation and requiring additional variations happened concurrently with the change of std::ranges::range's operand from a forwarding reference to a non-constant lvalue reference.

  2. jensmaurer commented on Jan 3, 2021

    @jensmaurer
    Member

    @jwakely , do you feel we can editorially remove p2, or should this get LWG review?

  3. JohelEGP commented on Apr 1, 2023

    @JohelEGP
    ContributorAuthor

    Requested for an issue to be opened.

  4. Dani-Hub commented on Apr 2, 2023

    @Dani-Hub
    Member

    @JohelEGP A new library has been created, see LWG 3915.

  5. changed the title [-][range.range] Redudant paragraph about expression variations[/-] [+][range.range] Redudant paragraph about expression variations LWG3915[/+] on Apr 2, 2023
  6. changed the title [-][range.range] Redudant paragraph about expression variations LWG3915[/-] [+][range.range] Redundant paragraph about expression variations LWG3915[/+] on Apr 2, 2023
  7. JohelEGP commented on Oct 14, 2024

    @JohelEGP
    ContributorAuthor

    Status: WP

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

    lwgIssue must be reviewed by LWG.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions