Topic: Format of compiler generated derived destructor when base has 'virtual ~base() throw():
Author: qazmlp1209@rediffmail.com (qazmlp)
Date: Mon, 11 Apr 2005 15:06:15 GMT Raw View
Could anybody reply to this post? I would like to know what exactly
'C++ standard' mentions about this.
> > qazmlp1209@rediffmail.com (qazmlp) wrote in message
> > news:<db9bbf31.0504080226.71c45717@posting.google.com>...
> > I have a class like this:
> > class base
> > {
> > public:
> > virtual ~base() throw();
> > // Other members
> > };
> >
> >
> > Now, if I write a class like this:
> > class derived:public base
> > {
> > // Other members
> > };
> >
> > What will/should be the format of the compiler-generated destructor for derived?
> >
> > Will it be this:
> > - ~derived(); or
> > - virtual ~derived(); or
> > - virtual ~derived() throw();
---
[ 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.jamesd.demon.co.uk/csc/faq.html ]