C++ Logo

std-proposals

Advanced search

Re: [std-proposals] PROPOSAL: reintroduce tag namespace

From: Jonathan Wakely <cxx_at_[hidden]>
Date: Mon, 21 Sep 2026 09:20:39 +0100
On Mon, 21 Sept 2026 at 08:51, Liam Graham via Std-Proposals <
std-proposals_at_[hidden]> wrote:

> Bringing in tag names to the type namespace automatically can easily lead
> to collisions. Bring back the C-style tag namespace, and let the developer
> bring in the tag name explicitly. Type safety is key in this industry.
>

This would be a massive breaking change for no benefit.

If you get collisions, it means you have something like struct X and enum
X, which is stupid. Pick better names.

Received on 2026-09-21 08:20:55