C++ Logo

std-proposals

Advanced search

Re: [span] Value of dynamic_extent

From: Barry Revzin <barry.revzin_at_[hidden]>
Date: Mon, 1 Jul 2019 21:18:54 -0500
On Mon, Jul 1, 2019 at 8:46 PM Lyberta via Std-Proposals <
std-proposals_at_[hidden]> wrote:

> Why can't std::span take std::optional<size_type>?
>

Because you can't have a non-type template parameter of type
optional<size_type>


>
> Why are we making the same mistake we did with std::basic_string::npos?
>

Received on 2019-07-01 21:20:55