#587 ReferenceElements should use unsigned for indices, sizes etc.
Metadata
| Property | Value |
|---|---|
| Reported by | Jö Fahlke (jorrit@jorrit.de) |
| Reported at | Aug 20, 2009 13:49 |
| Type | Bug Report |
| Version | Git (pre2.4) [autotools] |
| Operating System | Unspecified / All |
| Last edited by | Christoph Grüninger (gruenich@iws.uni-stuttgart.de) |
| Last edited at | Nov 20, 2013 07:31 |
Description
The ReferenceElements should use an unsigned type such as unsigned int or std::size_t for things like subentity indices, subentity counts and possibly even codimensions (though that is an int in a lot more places than just the ReferenceElements). All these quantities can never be <0. As an alternative, LocalKey from dune-localfunctions should change to using an int instead of unsigned int.
Edited by Christoph Grüninger