Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #85854

Re: Curious phenomenon about the std::prefix and integer aliases

From Ben Bacarisse <ben.usenet@bsb.me.uk>
Newsgroups comp.lang.c++
Subject Re: Curious phenomenon about the std::prefix and integer aliases
Date 2022-08-11 16:28 +0100
Organization A noiseless patient Spider
Message-ID <878rnug5pw.fsf@bsb.me.uk> (permalink)
References <td2dvi$g4u$1@gioia.aioe.org>

Show all headers | View raw


Juha Nieminen <nospam@thanks.invalid> writes:

> I have noticed quite many times a rather curious phenomenon when it
> comes to using the 'std::' prefix and the type aliases in <cstdint>:
>
> There's a lot of C++ programmers who will use the 'std::' prefix
> for all standard library names (including those that come from the
> C standard library)... except for the type aliases in <cstdint>,
> such as int32_t, uint64_t, size_t, etc. They do this extremely
> consistently: The prefix with every other standard library name,
> never with the standard library integer type aliases.
>
> This phenomenon seems to be strangely common. I wonder why.

Maybe they think of these types (or maybe they may want to suggest that
these types) are more like the standard types int, long an so on?

Maybe they are not sure that the C standard does not give permission for
these names to be macros?  (It doesn't.)

-- 
Ben.

Back to comp.lang.c++ | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Curious phenomenon about the std::prefix and integer aliases Juha Nieminen <nospam@thanks.invalid> - 2022-08-11 08:17 +0000
  Re: Curious phenomenon about the std::prefix and integer aliases Gawr Gura <gawrgura@mail.hololive.com> - 2022-08-11 02:19 -0700
  Re: Curious phenomenon about the std::prefix and integer aliases Ben Bacarisse <ben.usenet@bsb.me.uk> - 2022-08-11 16:28 +0100
    Re: Curious phenomenon about the std::prefix and integer aliases Juha Nieminen <nospam@thanks.invalid> - 2022-08-11 20:14 +0000

csiph-web