it it possible that in some cases NEW returns some value, for example NULL, or it will always throw exception?
it it possible that in some cases NEW returns some value, for example NULL,
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
http://www.parashift.com/c++-faq-lite/freestore-mgmt.html#faq-16.6
[Unless your compiler “is ancient”, in which case that page has a solution for you, too].
Note that if you disable exceptions in your compiler options, then you should check your compiler docs about what you can expect.