\section{\class{wxWeakRefDynamic}}\label{wxweakrefdynamic} wxWeakRefDynamic is a template class for weak references that is used in the same way as wxWeakRef. The only difference is that wxWeakRefDynamic defaults to using \texttt{dynamic\_cast<>} for establishing the object reference (while wxWeakRef defaults to \texttt{static\_cast<>}). So, wxWeakRef will detect a type mismatch during compile time and will have a little better run-time performance. The role of wxWeakRefDynamic is to handle objects which derived type one does not know. \textbf{Note:} wxWeakRef selects an implementation based on the static type of T. If T does not have wxTrackable statically, it defaults to to a mixed- mode operation, where it uses \texttt{dynamic\_cast<>} as the last measure (if available from the compiler and enabled when building wxWidgets). For general cases, wxWeakRef is the better choice. For API documentation, see: \helpref{wxWeakRef}{wxweakref} \wxheading{Derived from} No base class \wxheading{Include files} \wxheading{Library} \helpref{wxCore}{librarieslist} \latexignore{\rtfignore{\wxheading{Members}}} \membersection{wxWeakRefDynamic::wxWeakRefDynamic}\label{wxweakrefdynamicwxweakrefdynamic} \func{}{wxWeakRefDynamic}{\void} TOWRITE.