Skip to content

<string>: constexpr basic_string is unimplementable as specified #1699

Description

Per the ongoing work in #1502, basic_string cannot be made to work in constant expressions without additional changes to the character traits class. Specifically, we've had to modify char_traits::assign(s,n,c) (for all library-defined specializations of char_traits) to create new objects with value c rather than assigning that value to existing objects. (This may not be the only necessary change, we need to audit #1502 for any other fallout.)

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

    fixedSomething works now, yay!

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions