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 > Why not reject ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 28 Topic 9749 of 9909
Post > Topic >>

Why not reject the dynamic instantiation of a class with non-virtual destructor?

by "Angel Tsankov" <fn42551@[EMAIL PROTECTED] > Jun 27, 2008 at 02:25 PM

Hi,

Why not treat as erroneous a new expression that creates an instance of a
class which has a (direct or indirect) base class with a non-virtual
destructor and require implementations issue a diagnostic message? This
would minimize the chances for resource leaks and for undefined behaviour
in
C++ programs.

Angel Tsankov


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




 28 Posts in Topic:
Why not reject the dynamic instantiation of a class with non-vir
"Angel Tsankov"  2008-06-27 14:25:35 
Re: Why not reject the dynamic instantiation of a class with n
Thomas Maeder <maeder@  2008-06-28 00:42:46 
Re: Why not reject the dynamic instantiation of a class with no
peter koch larsen <pet  2008-06-28 01:28:00 
Re: Why not reject the dynamic instantiation of a class with no
Chris Uzdavinis <cuzda  2008-06-28 01:28:11 
Re: Why not reject the dynamic instantiation of a class with no
Maciej Sobczak <see.my  2008-06-28 01:28:00 
Re: Why not reject the dynamic instantiation of a class with no
Mathias Gaunard <loufo  2008-06-28 01:27:58 
Re: Why not reject the dynamic instantiation of a class with no
Seungbeom Kim <musiphi  2008-06-28 15:56:28 
Re: Why not reject the dynamic instantiation of a class with no
Bob Bell <belvis@[EMAI  2008-06-28 15:55:49 
Re: Why not reject the dynamic instantiation of a class with no
Jason Hise <0xCHAOS@[E  2008-06-28 16:16:05 
Re: Why not reject the dynamic instantiation of a class with no
Alberto Ganesh Barbati &l  2008-06-28 16:24:00 
Re: Why not reject the dynamic instantiation of a class with no
"Bo Persson" &l  2008-06-28 16:58:04 
Re: Why not reject the dynamic instantiation of a class with no
Maciej Sobczak <see.my  2008-06-29 14:17:53 
Re: Why not reject the dynamic instantiation of a class with no
Thomas Maeder <maeder@  2008-06-29 14:27:59 
Re: Why not reject the dynamic instantiation of a class with no
"Angel Tsankov"  2008-06-29 14:28:00 
Re: Why not reject the dynamic instantiation of a class with no
Kai-Uwe Bux <jkherciue  2008-06-30 08:59:05 
Re: Why not reject the dynamic instantiation of a class with no
Alberto Ganesh Barbati &l  2008-06-30 09:02:37 
Re: Why not reject the dynamic instantiation of a class with no
Bob Bell <belvis@[EMAI  2008-06-30 09:00:52 
Re: Why not reject the dynamic instantiation of a class with no
Triple-DES <DenPlettfr  2008-06-30 09:00:26 
Re: Why not reject the dynamic instantiation of a class with no
partow@[EMAIL PROTECTED]   2008-06-30 09:03:20 
Re: Why not reject the dynamic instantiation of a class with no
Bart van Ingen Schenau &l  2008-07-01 19:49:48 
Re: Why not reject the dynamic instantiation of a class with non
"Niklas Bäckman"  2008-07-02 03:32:38 
Re: Why not reject the dynamic instantiation of a class with no
wasti.redl@[EMAIL PROTECT  2008-07-02 11:12:36 
Re: Why not reject the dynamic instantiation of a class with non
Alberto Ganesh Barbati &l  2008-07-02 11:58:02 
Re: Why not reject the dynamic instantiation of a class with no
"Niklas Bäckman"  2008-07-03 02:42:55 
Re: Why not reject the dynamic instantiation of a class with no
"Nevin :-] Liber&quo  2008-07-03 03:28:08 
Re: Why not reject the dynamic instantiation of a class with no
"Nevin :-] Liber&quo  2008-07-03 03:28:07 
Re: Why not reject the dynamic instantiation of a class with non
Gerhard Menzl <clcppm-  2008-07-03 08:52:08 
Re: Why not reject the dynamic instantiation of a class with no
Alberto Ganesh Barbati &l  2008-07-06 16:35:27 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Wed Aug 20 4:00:33 CDT 2008.