Title
Missing fixed-size atomic_ typedefs
Status
nad
Section
[atomics]
Submitter
BSI

Created on 2010-08-25.00:00:00 last changed 167 months ago

Messages

Date: 2011-03-24.21:43:06

Proposed resolution:

Add the following entries to table 143:

Table 146 — atomic <inttypes.h> typedefs
Atomic typedef <inttypes.h> type
... ...
atomic_intmax_t intmax_t
atomic_uintmax_t uintmax_t
atomic_int8_t // iff int8_t is provided int8_t
atomic_uint8_t // iff uint8_t is provided uint8_t
atomic_int16_t // iff int16_t is provided int16_t
atomic_uint16_t // iff uint16_t is provided uint16_t
atomic_int32_t // iff int32_t is provided int32_t
atomic_uint32_t // iff uint32_t is provided uint32_t
atomic_int64_t // iff int64_t is provided int64_t
atomic_uint64_t // iff uint64_t is provided uint64_t
Date: 2011-03-24.00:00:00

[ 2011-03-24 Madrid ]

WG14 does not require these typedefs, and we see no reason to be gratuitously different.

Date: 2011-03-16.00:00:00

[ 2011-03-16: Hans reopenes and comments ]

WG14 briefly discussed LWG 1456. It turns out that they had previously made a conscious decision not to make a similar change. If C++ would deviate, this would introduce a C divergence.

We should reopen the issue and, in my opinion, probably resolve it as NAD instead. This is in a part of the standard that is there mostly for C compatibility, so introducing divergence here seems to make no sense.

Date: 2011-02-16.00:00:00

[ 2011-02-16 Reflector discussion ]

Moved to Tentatively Ready after 5 votes.

Date: 2011-02-15.00:00:00

[ 2011-02-15 Anthony corrects numbering/naming for N3225, Howard suggests improvement for the position of '(optional)', Daniel reorders rows in harmony to remaining entries and suggests specific optionality comments: ]

Date: 2010-10-24.00:00:00

[ 2010-10-24 Daniel adds: ]

Accepting n3164 would solve this issue.

Date: 2010-10-24.03:04:13

Addresses GB-129

Table 143 lists the typedefs for various atomic types corresponding to the various standard integer typedefs, such as atomic_int_least8_t for int_least8_t, and atomic_uint_fast64_t for uint_fast64_t. However, there are no atomic typedefs corresponding to the fixed-size standard typedefs int8_t, int16_t, and so forth.

History
Date User Action Args
2011-03-24 21:43:06adminsetmessages: + msg5696
2011-03-24 21:43:06adminsetstatus: open -> nad
2011-03-16 19:04:32adminsetmessages: + msg5657
2011-03-16 19:04:32adminsetstatus: voting -> open
2011-03-05 15:24:28adminsetstatus: ready -> voting
2011-02-16 00:10:45adminsetmessages: + msg5495
2011-02-16 00:10:45adminsetstatus: open -> ready
2011-02-15 21:06:27adminsetmessages: + msg5488
2010-10-25 00:25:22adminsetmessages: + msg5101
2010-10-24 03:04:13adminsetmessages: + msg4946
2010-08-25 00:00:00admincreate