Sharing destructors between classes in a common hierarchy
<p>I read that destructors can't be shared, is this true?</p>

<p>I have a base class with several subclasses and the destructor of
those subclasses does not change. This would result in some duplicated
code.</p>

<p>Is it possible to share the destructor? If not how would I avoid duplicated code in those destructors? </p>

<pre><code>Class A{

public:
  ~A() {
    //do something
  }
};

class B: public A{
};
class C: public A{
};
class D: public A{
};
</code></pre>

<p>Now I want <code>B</code>, <code>C</code>, and <code>D</code> to have the same destructor as <code>A</code>.</p>
