Problem 94 - Recursive G4MagneticField::operator =
Summary: Recursive G4MagneticField::operator =
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: geometry/magneticfield (show other problems)
Version: 1.1
Hardware: PC Linux
: P3 minor
Assignee: Gabriele Cosmo
URL:
Depends on:
Blocks:
 
Reported: 2000-05-09 09:11 CEST by daniel.barna
Modified: 2000-05-10 07:42 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 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.