Title
Integer-class type should be structural type
Status
new
Section
[iterator.concept.winc]
Submitter
Hewill Kang

Created on 2026-03-19.00:00:00 last changed 1 week ago

Messages

Date: 2026-03-21.13:54:00

Proposed resolution:

This wording is relative to N5032.

  1. Modify [iterator.concept.winc] as indicated:

    -9- All integer-class types are structural types ([temp.param]) that model `regular` ([concepts.object]) and three_way_comparable<strong_ordering> ([cmp.concept]).

Date: 2026-03-19.00:00:00

Currently, integer-class types are not guaranteed to be structure types, so the range of size members that return integer-class types may not be able to model tiny-range, because its size value cannot be used as a template parameter even if it is a constant expression. This does not appear to be the intention.

Given that integer-class types should behave like regular integers, and those types in MSVC-STL and libstdc++ are both implemented as structural types, it would be better to be clear about the wording.

History
Date User Action Args
2026-03-21 13:54:00adminsetmessages: + msg16034
2026-03-19 00:00:00admincreate