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 2 of 9 Topic 9593 of 10094
Post > Topic >>

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

by Ronald Natalie <ron@[EMAIL PROTECTED] > May 13, 2008 at 09:07 PM

numerical.simulation@[EMAIL PROTECTED]
 wrote:

> 
> Q: Did I misunderstand Stroustrup?

About what?

> Q: Is an STL allowed to throw things which do not inherit from
> std::exception?

STL is not throwing an exception here.   It's the windows new handler
that is.

> Q: No standard under my pillow: What's the wording about what operator
> new may throw?
> 

The standard one is supposed to throw std::badalloc, it appears your
windows one is throwing their own.

-- 
      [ 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 8:19:03 CDT 2008.