2780. basic_string_view::copy is missing constexpr

Section: 24.4 [string.view] Status: LEWG Submitter: Billy Robert O'Neal III Opened: 2016-10-07 Last modified: 2016-11-23

Priority: 2

View other active issues in [string.view].

View all other issues in [string.view].

View all issues with LEWG status.

Discussion:

Now that we have C++14 relaxed constexpr, we can also take care of the assignment operator and copy.

[Issues processing Telecon 2016-10-07]

Split off from 2778

[2016-11-12, Issaquah]

Sat PM: Status LEWG

Proposed resolution:

This wording is relative to N4606.

  1. In 24.4.2 [string.view.template], add constexpr to copy:

    constexpr size_type copy(charT* s, size_type n, size_type pos = 0) const;
    
  2. In 24.4.2.6 [string.view.ops], add constexpr to copy:

    constexpr size_type copy(charT* s, size_type n, size_type pos = 0) const;