#1660 (un)signedness of indices or dimensions
|Reported by||Martin Nolte (firstname.lastname@example.org)|
|Reported at||Jun 4, 2015 12:41|
|Version||Git (pre2.4) [cmake]|
|Operating System||Unspecified / All|
Currently the signedness ofdimensions or indices in the DUNE core is arbitrary. Sometimes a codimension is an
int (e.g., in the
Codim structures), sometimes it is an
unsigned int (e.g., in the
indexSet.subIndex). Similarly, subentity indices are sometimes
refElement.subEntity returns an
int), sometimes they are
The different signedness frequently triggers gcc warnings. These in turn need to be circumvented by an explicit
static_cast, unnecessarily cluttering the code.
I think it is time for a final decision on this signedness issue. I'm fine with either of them, but the mixture is a mess.