By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,234 Members | 1,889 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,234 IT Pros & Developers. It's quick & easy.

Format of compiler generated derived destructor when base has 'virtual ~base() throw():"

P: n/a
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();
Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Could anybody reply to this post? I would like to know what exactly
'C++ standard' mentions about this.

Thanks!
qa********@rediffmail.com (qazmlp) wrote in message
news:<db**************************@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();

Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.