C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Deprecate int

From: Jan Schultke <janschultke_at_[hidden]>
Date: Mon, 7 Sep 2026 15:07:49 +0200
Firstly, this note on the purpose of 'int' was removed in
https://github.com/cplusplus/draft/pull/8448

Secondly, can you stop spamming this mailing list with quarter-baked,
low-quality content almost every day? The suggestion to "deprecate int" is
just the tip of the iceberg. And sure, I guess the title is just clickbait,
but the suggestion to standardize a typedef intptr_t int_t; alias is only
of slightly greater quality than what's suggested in the title.

I've never seen you actually follow up on something you've suggested here,
irrespective of people's feedback, which is almost always negative. All you
do is waste people's time and misuse the mailing list for your personal
entertainment, or as some kind of personal blog.

On Mon, 7 Sept 2026 at 14:49, Frederick Virchanza Gotham via Std-Proposals <
std-proposals_at_[hidden]> wrote:

> 'int' is no longer fit for purpose as described in the Standard:
>
> "Plain int's have the natural size suggested
> by the architecture of the execution environment"
>
> This isn't abided anymore, as all 64-Bit platforms have 32-Bit int's.
>
> It is for this reason that in my code I use 'uintptr_t' when I need
> the 'natural size' integer.
>
> Just this week, I found old code of mine that used 'uintptr_t', and I
> went looking for where in the code I converted a pointer to an int --
> but I couldn't find it. Then I realised that I was only using that
> type as the 'natural' type. So maybe we should have:
>
> namespace std {
> typedef intptr_t int_t;
> typedef uintptr_t uint_t;
> }
> --
> Std-Proposals mailing list
> Std-Proposals_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
>

Received on 2026-09-07 13:08:08