placement new with null pointer value?

placement new with null pointer value?

Post by usene » Mon, 28 Jun 2004 16:40:50



Yes, according to the standard that is true. As you mentioned, 5.3.4
thus results in:
-the placement new allocation function returns null
-since it has a throw() clause the 0 is interpreted as a bad_alloc
-thus the initliazer is not called
-and the new operator returns 0


--
edA-qa mort-ora-y (Producer)
Trostlos Records < http://www.yqcomputer.com/ ;

"What suffering would man know if not for his own?"

---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.yqcomputer.com/ ]