Hi Genodians

I would like to create a hierarchy of classes on top of Fifo<>::Element
so these object can be stored in fifos:

class A : public Fifo<A>::Element
{
  virtual method() = 0;
};

class B : public A
{
  method() override { ... }
};

This won't compile because Fifo<>::Element is missing a virtual destructor.

Is there any reason for this? What do you think about adding the virtual
destructor to Fifo<>::Element?


Kind regards
Stefan

-- 
Freundliche Grüsse

Stefan Thöni
Chairman of the Board
Senior Security Architect
+41 79 610 64 95

gapfruit AG
Baarerstrasse 135
6300 Zug
https://gapfruit.com

Attachment: 0x05D66A288F9939FF.asc
Description: application/pgp-keys

<<attachment: stefan_thoeni.vcf>>

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Genode users mailing list
[email protected]
https://lists.genode.org/listinfo/users

Reply via email to