C++ Logo

std-proposals

Advanced search

Re: [External] std::to_array support for zero-length arrays

From: Zhihao Yuan <zy_at_[hidden]>
Date: Thu, 05 Nov 2020 07:11:59 +0000
On Wednesday, November 4, 2020 6:21 PM, D'Alessandro, Luke K <ldalessa_at_[hidden]> wrote:

> Do you have an example of somewhere else in the standard that defines such an “exposition-only type” that I could use for reference language? (I presume that this means that the actual type name is implementation-defined, though the definition must be equivalent to “struct zero_length_array_tag{};").

There is an exposition-only alias in [sequences.general].

Something like this:

The following exposition-only class may appear in the
definitions in this subclause:

struct zero-length-array-tag {};

--
Zhihao Yuan, ID lichray
The best way to predict the future is to invent it.
_______________________________________________

Received on 2020-11-05 01:12:16