Skip to content

<iterator>: std::contiguous_iterator<const volatile int*> == false because of volatile? #2581

Description

@pc125

static_assert(std::contiguous_iterator<const volatile int*>) fails with this STL, while it works with lib(std)c++. Without the volatile it works everywhere. Who is correct?
I can't see why a pointer to volatile data shouldn't be a valid iterator.

Activity

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

    bugSomething isn't workingcompilerCompiler work involvedfixedSomething works now, yay!

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions