Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ Moderated > Re: operator ne...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 6 of 9 Topic 9593 of 10094
Post > Topic >>

Re: operator new not forced to throw std::bad_alloc?

by Eberhard Schefold <eberhard.schefold@[EMAIL PROTECTED] > May 14, 2008 at 08:38 AM

Ian Collins wrote:

>> void* __cdecl operator new(size_t nSize)
> 
> That (__cdecl) makes the function non-standard, so all bets are probably
> off at this point.

I think you're mixing up "standard" and "****table" here. A particular
implementation can use any amount of its own folklore provided it allows
to compile standard-conforming code. As long as the operator is found
for code assuming the signature as given in the standard, the
implementation is conforming. On the other hand, a particular
implementation is not required to compile in another environment. I
don't see the problem here.

-- 
      [ See http://www.gotw.ca/resources/clcm.htm
for info about ]
      [ comp.lang.c++.moderated.    First time posters: Do this! ]
 




 9 Posts in Topic:
operator new not forced to throw std::bad_alloc?
numerical.simulation@[EMA  2008-05-13 11:57:27 
Re: operator new not forced to throw std::bad_alloc?
Ronald Natalie <ron@[E  2008-05-13 21:07:26 
Re: operator new not forced to throw std::bad_alloc?
Alberto Ganesh Barbati &l  2008-05-13 21:07:52 
Re: operator new not forced to throw std::bad_alloc?
=?ISO-8859-1?Q?Daniel_Kr=  2008-05-13 21:06:59 
Re: operator new not forced to throw std::bad_alloc?
Ian Collins <ian-news@  2008-05-13 21:10:57 
Re: operator new not forced to throw std::bad_alloc?
Eberhard Schefold <ebe  2008-05-14 08:38:32 
Re: operator new not forced to throw std::bad_alloc?
Greg Herlihy <greghe@[  2008-05-14 11:41:05 
Re: operator new not forced to throw std::bad_alloc?
numerical.simulation@[EMA  2008-05-20 00:04:33 
Re: operator new not forced to throw std::bad_alloc?
numerical.simulation@[EMA  2008-05-20 00:27:31 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 18:22:44 CDT 2008.