This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of Resolved status.

2780. basic_string_view::copy is missing constexpr

Section: 27.3 [string.view] Status: Resolved Submitter: Billy Robert O'Neal III Opened: 2016-10-07 Last modified: 2018-11-25

Priority: 2

View other active issues in [string.view].

View all other issues in [string.view].

View all issues with Resolved 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(i)

[2016-11-12, Issaquah]

Sat PM: Status LEWG

[LEWG Kona 2017]

Recommend NAD: Don't want to spend the committee time. Can call std::copy if you want this, after LEWG159 goes into C++20.

[2018-06 Rapperswil Wednesday issues processing]

This will be addressed by P1032.

Resolved by the adoption of P1032 in San Diego.

Proposed resolution:

This wording is relative to N4606.

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

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

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