C++ Logo

STD-PROPOSALS

Advanced search

Subject: Re: [std-proposals] [External] std::to_array support for zero-length arrays
From: Zhihao Yuan (zy_at_[hidden])
Date: 2020-11-05 01:11:59


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.
_______________________________________________



STD-PROPOSALS list run by std-proposals-owner@lists.isocpp.org

Standard Proposals Archives on Google Groups