#892 FieldVector-FieldVector operations must statically check the size!
Metadata
Property | Value |
---|---|
Reported by | Markus Blatt (markus@dr-blatt.de) |
Reported at | Mar 3, 2011 19:55 |
Type | Bug Report |
Version | Git (pre2.4) [autotools] |
Operating System | Unspecified / All |
Last edited by | Markus Blatt (markus@dr-blatt.de) |
Last edited at | Mar 4, 2011 09:54 |
Description
There a quite a few methods in FieldVector with a FieldVector as the only argument, that only make sense if both vectors have the same size. Unfortunately, most of them are forwarded to the base class DenseVector which only has a dynamic assertion which checks the size.
This is far from ideal and I would propose a static_assert
in FieldVector itself!
I have already fixed this for the copy constructor.
Some of the methods that should still be changed are:
operator=
operator+=
operator-=
...