[Dune] [#564] Use dynamic polymorphism
Dune
dune at dune-project.org
Fri Jun 19 11:55:47 CEST 2009
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#564 - Use dynamic polymorphism
User who did this - Peter Bastian (peter)
----------
Hi all,
I just like to repeat my argument: I do not see why the use of virtual functions needs to established in the interface. My idea was this: If your implementation is simple, e.g. one element type, one polynomial order, then there are no virtual functions. If your implementation is complicated, make a base class with virtual functions, say P1MultiElementTypeBase and derive from that your implementations for triangles and quads.
You propose to do it just the other way around: Hardwire the virtual functions in the interface and rely on some other quirk that removes them if you don't want them. I just don't see the point what is so bad with my solution (besides personal taste).
Besides all that I do not think that run-time is such a big issue there. It would be nice to see some numbers nevertheless. If they indicate that there is no difference, then let us use virtual functions. Period.
----------
More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=564#comment967
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