[Dune] [#766] Separate GenericGeometries and the SmallObjectPool

Dune flyspray at dune-project.org
Tue Apr 6 10:07:13 CEST 2010


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#766 - Separate GenericGeometries and the SmallObjectPool
User who did this - Martin Nolte (nolte)

----------
I have a question: How do STL allocators work with dynamic polymorphism?

Especially the following two points are unclear to me:
* The container has an allocator for the abstract base type. May I simply copy it into an allocator for the derived type and call allocate there?
* When destroying the object, may I use the allocator for the abstract base class?

Maybe, you could provide some very simple demo code? Just an abstract base class, two derived classes and a container storing pointers to the base type would be great.
----------

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

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