This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libstdc++/10283: operator new does not return null on some windows systems


Synopsis: operator new does not return null on some windows systems

State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Tue Apr  1 14:29:04 2003
State-Changed-Why:
    Not a bug. According to the standard, operator new
    throws an exception when no more memory is available,
    rather than returning NULL. If you want to get NULL
    returned, use new(nothrow), or catch the exception.
    
    W.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10283


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]