Exemplo n.º 1
0
double SimpleElement::Difference(Element& elem) {
  try {
    SimpleElement& simple_elem = dynamic_cast<SimpleElement&>(elem);
    return SimpleElementDifference(simple_elem);
  } catch (bad_cast& e) {
    return elem.Difference(*this);
  }
}