Skip to content

#463 Mappers should use size_type

Metadata

Property Value
Reported by Christian Engwer (christi@conan.iwr.uni-heidelberg.de)
Reported at Nov 17, 2008 11:58
Type Feature Request
Version Git (pre2.4) [autotools]
Operating System Unspecified / All
Last edited by Oliver Sander (oliver.sander@tu-dresden.de)
Last edited at Nov 25, 2014 11:57
Closed by Oliver Sander (oliver.sander@tu-dresden.de)
Closed at Nov 25, 2014 11:57
Closed in version 3.0
Resolution Fixed
Comment In commit 092259b8873a980f6b2c2bbb5a0040cc4ea61849 and follow-ups.

Description

The mappers currently use int as the return type for both map and size.

As the return type of map should be something usable for the []-operator, it should be of an unsigned interger type. When changing map, the return type of size has to be changed consistently. The unsigned integer type should also be available as a typedef size_type.