C++ Logo

std-discussion

Advanced search

Re: Empty type

From: Jason McKesson <jmckesson_at_[hidden]>
Date: Fri, 20 May 2022 12:24:44 -0400
On Fri, May 20, 2022 at 10:28 AM Vladimir Grigoriev via Std-Discussion
<std-discussion_at_[hidden]> wrote:
>
> In C++ 20 there is used term «empty type». However there is no definition of the term that looks confusing.

In C++20, there is exactly one place that uses the term "Empty Type":
[default.sentinels]/1. Nothing else uses it, and nothing else really
needs to. It would therefore be better to just not define it.

Not unless you want to put some actual requirements on the
no_unique_address attribute.

Received on 2022-05-20 16:26:18