C++ Logo

std-proposals

Advanced search

Re: [std-proposals] A better std::byte type

From: Sebastian Wittmeier <wittmeier_at_[hidden]>
Date: Fri, 26 Jun 2026 14:14:49 +0200
We have many different constructs with slightly different menaing: void* means: there exists a T, for which casting into T gives a valid pointer, which can be dereferenced std::byte* is a pointer to raw memory std::span is a pointer to a byte range with known length struct T; T* is a pointer to an incomplete type uintptr_t for storing of pointers -----Ursprüngliche Nachricht----- Von:Alejandro Colomar via Std-Proposals <std-proposals_at_[hidden]> Gesendet:Fr 26.06.2026 13:59 Betreff:Re: [std-proposals] A better std::byte type Anlage:signature.asc An:David Brown via Std-Proposals <std-proposals_at_[hidden]>; CC:Alejandro Colomar <une+cxx_std-proposals_at_[hidden]>; In many decades, that could happen. After all, void* replaced char* back in the days.

Received on 2026-06-26 12:18:47