Message: delete 0 Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None delete 0 

Forum: Event and Track Management
Date: 21 Mar, 2003
From: <vincenzo.innocente@cern.ch>

deleting a null pointer is legal in C++.
G4Track * t=0;
delete t;
is G4Allocator<Type>::FreeSingle protected for this occurence
or should it be detected by the
Type::delete(Type*)?

        cheers,
           vincenzo


Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Feedback: Re: delete 0   (Gabriele Cosmo - 01 Apr, 2003)
 Add Message Add Message
to: "delete 0"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]