C++ Logo

std-proposals

Advanced search

[std-proposals] PROPOSAL: Standardise one cast — a cast’s a cast

From: Liam Graham <liamgraham_at_[hidden]>
Date: Mon, 21 Sep 2026 07:45:09 +0000
We have reinterpret_cast, const_cast, dynamic_cast, static_cast.

What does the CPU do? Nothing. It doesn't care

Ergonomics again. Writing them out in that weird

CATEGORY_CAST<T>(U) syntax is very unorthodox to write out, it looks like a template with the <N> thing when it’s not.

I propose reintroducing C casts as the predominant form of casting.

(T)(U) that's unambiguous
(const T)(non const U)
(CObject)(CObChild)



Sent from Outlook for iOS<https://aka.ms/o0ukef>

Received on 2026-09-21 07:45:13