| Summary: | G4Cons should have a virtual destructor? | ||
|---|---|---|---|
| Product: | Geant4 | Reporter: | Giuseppe Vacanti <gvacanti> |
| Component: | geometry/solids | Assignee: | Gabriele Cosmo <Gabriele.Cosmo> |
| Status: | RESOLVED WONTFIX | ||
| Severity: | minor | ||
| Priority: | P4 | ||
| Version: | 10.1 | ||
| Hardware: | All | ||
| OS: | All | ||
|
Description
Giuseppe Vacanti
2016-09-05 17:58:38 CEST
G4Cons as for all other concrete shapes is not supposed to act as base class for other classes. Indeed the "virtual" keyword should not be present, as it is not present for all the other virtual methods a G4 shape is supposed to implement. Future revision of this code for C++11 will likely mark all concrete G4 shapes as 'final'. |