Problem 94

Summary: Recursive G4MagneticField::operator =
Product: Geant4 Reporter: daniel.barna
Component: geometry/magneticfieldAssignee: Gabriele Cosmo <Gabriele.Cosmo>
Status: RESOLVED FIXED    
Severity: minor    
Priority: P3    
Version: 1.1   
Hardware: PC   
OS: Linux   

Description daniel.barna 2000-05-09 09:11:49 CEST
inline  G4MagneticField& G4MagneticField::operator = (const G4MagneticField &p)
 { *this = p; return *this; }

seems to be an infinite recursive function. If the derived class
doesn't need a non-default assignment operator (and therefore doesn' implement
it's own), this will be called, making no sign why the program stops forever.
Comment 1 Gabriele Cosmo 2000-05-10 07:42:59 CEST
Fixed in development version. Will be part of next release.
Thanks.