#include </home/work/projects/wx/2.9/wx/interface/wx/weakref.h>
The only difference is that wxWeakRefDynamic defaults to using dynamic_cast for establishing the object reference (while wxWeakRef defaults to 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.
dynamic_cast as the last measure (if available from the compiler and enabled when building wxWidgets).For API documentation, see: wxWeakRef<T>.
| T | The type to which the smart pointer points to. |
|
[ top ] |