Skip to content

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

@pc125

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    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