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: A proposal ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 12 Topic 9563 of 9828
Post > Topic >>

Re: A proposal to cancel overriding the DEFAULT operator new/delete

by Tony Delroy <tony_in_da_uk@[EMAIL PROTECTED] > Apr 30, 2008 at 10:27 AM

On Apr 30, 7:13 pm, xu****wei <xu****we...@[EMAIL PROTECTED]
> wrote:
> I don't think we need to override the DEFAULT operator new/delete.
> This makes your code doesn't work well together 3rdparty code (if it
> also override them).
>
> I suggest ISO C++ cancel this feature, just like we can't override
> operator+ of all C types. That is:

Practically, there's no way this will happen, as lots of existing code
makes use of this feature.  If you think there's a problem, put your
effort into finding a way of structuring the resolution of memory
requests to avoid the issues you're experiencing, and if other people
see the merits, you might get it into a later C++ standard.  Simply
banning everything is about as practical as asking the UN to make it
illegal for 3rd party libraries to include thread-unsafe code, or
requiring all libraries to be in namespaces registered with a global
body....

Tony

-- 
      [ See http://www.gotw.ca/resources/clcm.htm
for info about ]
      [ comp.lang.c++.moderated.    First time posters: Do this! ]
 




 12 Posts in Topic:
A proposal to cancel overriding the DEFAULT operator new/delete
xushiwei <xushiweizh@[  2008-04-30 04:13:22 
Re: A proposal to cancel overriding the DEFAULT operator new/del
Tony Delroy <tony_in_d  2008-04-30 10:27:26 
Re: A proposal to cancel overriding the DEFAULT operator new/del
Francis Glassborow <fr  2008-04-30 10:28:10 
Re: A proposal to cancel overriding the DEFAULT operator new/del
xushiwei <xushiweizh@[  2008-04-30 17:02:45 
Re: A proposal to cancel overriding the DEFAULT operator new/del
Tony Delroy <tony_in_d  2008-04-30 22:16:45 
Re: A proposal to cancel overriding the DEFAULT operator new/del
Francis Glassborow <fr  2008-04-30 22:16:29 
Re: A proposal to cancel overriding the DEFAULT operator new/del
xushiwei <xushiweizh@[  2008-05-02 13:02:22 
Re: A proposal to cancel overriding the DEFAULT operator new/del
xushiwei <xushiweizh@[  2008-05-02 13:01:37 
Re: A proposal to cancel overriding the DEFAULT operator new/del
"Stephen Howe"   2008-05-03 06:13:29 
Re: A proposal to cancel overriding the DEFAULT operator new/del
Francis Glassborow <fr  2008-05-03 16:09:49 
Re: A proposal to cancel overriding the DEFAULT operator new/del
Alberto Ganesh Barbati &l  2008-05-04 17:17:09 
Re: A proposal to cancel overriding the DEFAULT operator new/del
dizzy <dizzy@[EMAIL PR  2008-05-05 07:13:25 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 15:53:13 CDT 2008.