[Dune] [#892] FieldVector-FieldVector operations must statically check the size!

Dune flyspray at dune-project.org
Thu Mar 3 20:55:20 CET 2011


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened.  Details are below. 

User who did this - Markus Blatt (mblatt) 

Attached to Project - Dune
Summary - FieldVector-FieldVector operations must statically check the size!
Task Type - Bug Report
Category - Common
Status - New
Assigned To - 
Operating System - Unspecified / All
Severity - Low
Priority - Normal
Reported Version - SVN (pre2.2)
Due in Version - Undecided
Due Date - Undecided
Details - 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.
Unfortunately, most of them are forwarded to the base class DenseVector which only has a dynamic assertion.

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-=
...

More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=892

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.




More information about the Dune mailing list