Article View: comp.std.c++
Article #1692Re: overloaded new/delete
From: Scott Meyers
Date: Wed, 09 Aug 1995 18:07
Date: Wed, 09 Aug 1995 18:07
18 lines
1129 bytes
1129 bytes
In article <40ak2i$9oa@engnews2.Eng.Sun.COM> clamage@Eng.Sun.COM writes: | It is covered. There is no syntax for getting an overloaded operator delete | via a delete-expression. You can define a "placement delete", but it is | called only if | - a constructor invoked from a placement-new expression exits via an exception, or | - you call the operator delete explicitly. | That is: | T* p ... | delete p; // never calls a placement delete | // but you can do this | p->~T(); // call destructor | operator delete(p, &allocator); Okay, what am I missing? DWP 3.7.3.2 says that if operator delete has a second parameter, it must be of type size_t. How can &allocator be of that type? Scott
Technical Details
Message-ID:
<smeyersDD22Bx.K1q@netcom.com>Path:
arc1-ca.pugleaf.net!netcom.com!smeyersReferences:
<409muv$nta@oznet03.ozemail.com.au> <40ak2i$9oa@engnews2.Eng.Sun.COM>Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c++ Path: arc1-ca.pugleaf.net!netcom.com!smeyers From: smeyers@netcom.com (Scott Meyers) Subject: Re: overloaded new/delete Message-ID: <smeyersDD22Bx.K1q@netcom.com> Organization: Netcom Online Communications Services (408-241-9760 login: guest) References: <409muv$nta@oznet03.ozemail.com.au> <40ak2i$9oa@engnews2.Eng.Sun.COM> Date: Wed, 9 Aug 1995 18:07:08 GMT Sender: smeyers@netcom6.netcom.com