Problem 773 - class G4ProtonIsotopeProduction has virtual functions but non-virtual destructor
Summary: class G4ProtonIsotopeProduction has virtual functions but non-virtual destructor
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: processes/hadronic/models (show other problems)
Version: 7.1
Hardware: All All
: P2 trivial
Assignee: Hans-Peter.Wellisch
URL:
Depends on:
Blocks:
 
Reported: 2005-07-28 16:41 CEST by jasondet
Modified: 2005-08-08 03:39 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description jasondet 2005-07-28 16:41:40 CEST
The line in the summary is the warning message emitted by my compiler. Can
someone please tack a "virtual" in front of the destructor for this class for
the next release? Or if this is done on purpose, please include some
documentation in the hh file as to why?
Comment 1 Hans-Peter.Wellisch 2005-08-08 03:39:59 CEST
Well, this class is not meant to be inherited from. Hence no virtual
destructor...

Many greetings,

Hans-Peter.