help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: g++ Compile Problems Using Multiple Overloaded Operators in a Matrix


From: Maurizio Loreti
Subject: Re: g++ Compile Problems Using Multiple Overloaded Operators in a Matrix Class
Date: 15 Jan 2005 17:34:39 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

Larry I Smith <larryXiXsmith@verizon.net> writes:

> Ulrich Eckhardt wrote:
> 
> > Lastly a thing where I differ from Larry: there is no need to check a
> > pointer before invoking delete[] on it, as he does in the Uli
> >
> 
> This is a portability issue.
> Sadly, to this day, some compilers/libs on some OS'es will fault
> if a NULL value is passed to delete/delete[].

You are in gnu.g++.help.  g++ is conformant.  And I do not know any
current compiler/OS where delete[] barfs on a NULL pointer; can you be
more specific?

-- 
Maurizio Loreti                         http://www.pd.infn.it/~loreti/mlo.html
Dept. of Physics, Univ. of Padova, Italy              ROT13: ybergv@cq.vasa.vg

reply via email to

[Prev in Thread] Current Thread [Next in Thread]