#819 Remove enum FieldVector::size
Metadata
Property | Value |
---|---|
Reported by | Carsten Gräser (graeser@math.fu-berlin.de) |
Reported at | Sep 12, 2010 21:32 |
Type | Feature Request |
Version | 1.2 |
Operating System | Unspecified / All |
Last edited by | Oliver Sander (oliver.sander@tu-dresden.de) |
Last edited at | Aug 11, 2011 15:17 |
Closed by | Oliver Sander (oliver.sander@tu-dresden.de) |
Closed at | Aug 11, 2011 15:17 |
Closed in version | Unknown |
Resolution | Implemented |
Comment | From revision 6486 there is now a configure flag --enable-fieldvector-size-is-method and a corresponding preprocessor flag DUNE_COMMON_FIELDVECTOR_SIZE_IS_METHOD that allow to switch between the two alternatives. See the recent changes page for details. |
Description
Altough FieldVector is some kind of array/vector it has no size() method. Instead it has an enum size that shadows the size method in DenseVector.
Due to this fact you can not use FieldVector in generic code for vector-like classes.
Since the enum dimension provides the same information statically I suggest to remove the enum size.