[Dune] [#672] GridFactory: "BoundarySegments" for Elements
Dune
dune at dune-project.org
Tue Dec 1 14:50:00 CET 2009
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#672 - GridFactory: "BoundarySegments" for Elements
User who did this - Oliver Sander (sander)
----------
This is a classic problem in dynamic polymorphism, and there is a classic solution. You need a virtual method create() and/or a virtual method clone() in your hierarchy. The former replaces the default constructor, while the latter replaces the copy constructor. In fact, this is what the stuff in dune/common/interfaces.hh is good for.
cf. also, e.g.,
http://en.wikibooks.org/wiki/C%2B%2B_Programming/Classes/Polymorphism
the section on virtual constructors.
----------
More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=672#comment1393
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