Created on 2019-05-23.00:00:00 last changed 49 months ago
Proposed resolution:
This wording is relative to N4810.
Modify [iterator.range] as indicated:
template<class T,ptrdiffsize_t N> constexpr ptrdiff_t ssize(const T (&array)[N]) noexcept;-19- Returns: static_cast<ptrdiff_t>(N).
[ 2020-11-09 Status changed: Tentatively NAD → NAD. ]
[ 2019-06-12 Tentatively NAD after reflector discussion ]
The N in ssize(const T (&)[N]) is specified to be of type ptrdiff_t. It should be size_t to be consistent with the rest of the standard library, such as the array overloads for all other range access functions, the swap overload for arrays, and other function template overloads for arrays. (Note: the return type of this function should still be ptrdiff_t.)
History | |||
---|---|---|---|
Date | User | Action | Args |
2020-11-09 20:22:58 | admin | set | messages: + msg11534 |
2019-06-10 05:16:56 | admin | set | messages: + msg10436 |
2019-06-10 05:16:56 | admin | set | status: new -> nad |
2019-05-27 16:04:42 | admin | set | messages: + msg10411 |
2019-05-23 00:00:00 | admin | create |