Topic: The C++ Standard Doesn't Permit Overloading new and delete?
Author: "Lighter" <cqulyx@gmail.com>
Date: Wed, 9 Aug 2006 10:33:39 CST Raw View
The C++ Standard Doesn't Permit Overloading new and delete?
In the 13.5 of The C++ standard (ISO/IEC 14882, 1998), I cannot find
the specification on overloading the operators new and delete; however,
many C++ books including "C++ Primer" say that the operators new and
delete can be overloaded. I wonder if this has a definitive
specification? Who can tell me?
Many thanks to those who answer.
---
[ 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.comeaucomputing.com/csc/faq.html ]
Author: kuyper@wizard.net
Date: Thu, 10 Aug 2006 00:13:16 CST Raw View
Lighter wrote:
> The C++ Standard Doesn't Permit Overloading new and delete?
>
> In the 13.5 of The C++ standard (ISO/IEC 14882, 1998), I cannot find
> the specification on overloading the operators new and delete; however,
> many C++ books including "C++ Primer" say that the operators new and
> delete can be overloaded. I wonder if this has a definitive
> specification? Who can tell me?
Take a look at 13.5p5, and follow up on the cross-reference it makes to
3.7.3.
---
[ 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.comeaucomputing.com/csc/faq.html ]