← Back to team overview

dolfin team mailing list archive

down_cast

 

In the down casting functions in GenericTensor, what's the difference between

  T* t = dynamic_cast<T*>(instance());

and

  T* t = dynamic_cast<T*>(this);
?

Is there much overhead associated with a dynamic cast?

Garth




Follow ups