THistogramArrayBase and inheritance from std::vector

Issue #15 new
Former user created an issue

Hello

THistogramArrayBase is considered as a polymorphic class (according to examples).

Unfortunately, this class itself has a public inheritance from non-polymorphic std::vector that has no virtual destructor.

This issue is explained, for example, here: https://stackoverflow.com/a/4357417

It is possible to use composition instead of inheritance?

Thanks

Comments (3)

  1. Log in to comment