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: Larry I Smith
Subject: Re: g++ Compile Problems Using Multiple Overloaded Operators in a Matrix Class
Date: Sat, 15 Jan 2005 17:10:20 GMT
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041220

Maurizio Loreti wrote:
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?


Please read my reply to Ulrich's post, which asks the same question.

Regards,
Larry

--
Anti-spam address, change each 'X' to '.' to reply directly.

reply via email to

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