Skip to content

std::span with volatile non copyable type cannot be constructed #132474

@apache-hb

Description

@apache-hb

Constructing a span containing a non-copyable type fails if volatile qualified, requires specifying a volatile overload for both copy and move constructors. example. Additionally the behaviour of libc++ and libstdc++ differ when deducing the size of an array type constructor if the type is volatile. example

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidResolved as invalid, i.e. not a buglibc++libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions