Import Geant4 11.1.0.beta source tree
This commit is contained in:
@@ -37,7 +37,9 @@ extern G4PART_DLL G4Allocator<G4DynamicParticle>*& pDynamicParticleAllocator();
|
||||
inline void * G4DynamicParticle::operator new(size_t)
|
||||
{
|
||||
if (pDynamicParticleAllocator() == nullptr)
|
||||
{
|
||||
pDynamicParticleAllocator() = new G4Allocator<G4DynamicParticle>;
|
||||
}
|
||||
return pDynamicParticleAllocator()->MallocSingle();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user