#892 FieldVector-FieldVector operations must statically check the size!
|Reported by||Markus Blatt (firstname.lastname@example.org)|
|Reported at||Mar 3, 2011 19:55|
|Version||Git (pre2.4) [autotools]|
|Operating System||Unspecified / All|
|Last edited by||Markus Blatt (email@example.com)|
|Last edited at||Mar 4, 2011 09:54|
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-=