FieldVector & FieldMatrix -- implicit conversion
Hi there,
the following two constructors are causing trouble for me. Not being "explicit" they lead to implicit type conversion. The concrete example is that a Fieldvector<SCALAR, DIM>
can be implicitly converted to a FieldVector<FieldMatrix<SCALAR, D1, D2>, DIM>
. The two constructors implementing this bug/feature are
-
dune/common/fmatrix.hh
, around line 100 -
dune/common/fvector.hh
, around line 145
Changing the fmatrix copy-constructor does not seem to be a good idea. But if the FieldVector constructor could be made "explicit", that would be great.
Still, there may be side-effects when changing to "explicit" Dunno.
Cheers,
Claus