]> git.saurik.com Git - wxWidgets.git/commitdiff
removed wx_dynamic_cast(), it can't be implemented properly without real dynamic_cast<>
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 8 Mar 2005 11:17:01 +0000 (11:17 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 8 Mar 2005 11:17:01 +0000 (11:17 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32674 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/latex/wx/function.tex
include/wx/defs.h

index 7a3922c11522bf95ea73d549dd3eac955a88842c..dcca717867279dbc43afac1dee8a4c8726e40894 100644 (file)
@@ -247,7 +247,6 @@ the corresponding topic.
 \helpref{wxWriteResource}{wxwriteresource}\\
 \helpref{wxYield}{wxyield}\\
 \helpref{wx\_const\_cast}{wxconstcastraw}\\
-\helpref{wx\_dynamic\_cast}{wxdynamiccastraw}\\
 \helpref{wx\_reinterpret\_cast}{wxreinterpretcastraw}\\
 \helpref{wx\_static\_cast}{wxstaticcastraw}\\
 \helpref{\_}{underscore}\\
@@ -3501,8 +3500,7 @@ Example:
 \helpref{RTTI overview}{runtimeclassoverview}\\
 \helpref{wxDynamicCastThis}{wxdynamiccastthis}\\
 \helpref{wxConstCast}{wxconstcast}\\
-\helpref{wxStaticCast}{wxstaticcast}\\
-\helpref{wx\_dynamic\_cast}{wxdynamiccastraw}
+\helpref{wxStaticCast}{wxstaticcast}
 
 
 \membersection{wxDynamicCastThis}\label{wxdynamiccastthis}
@@ -3545,23 +3543,6 @@ arguments is the same as for the standard cast.
 
 \wxheading{See also}
 
-\helpref{wx\_dynamic\_cast}{wxdynamiccastraw},\\
-\helpref{wx\_reinterpret\_cast}{wxreinterpretcastraw},\\
-\helpref{wx\_static\_cast}{wxstaticcastraw}
-
-
-\membersection{wx\_dynamic\_cast}\label{wxdynamiccastraw}
-
-\func{T}{wx\_dynamic\_cast}{T, x}
-
-Same as \texttt{dynamic\_cast<T>(x)} if the compiler supports dynamic cast or
-\texttt{(T)x} for old compilers. Unlike \helpref{wxDynamicCast}{wxdynamiccast},
-the cast it to the type \arg{T} and not to \texttt{T *} and also the order of
-arguments is the same as for the standard cast.
-
-\wxheading{See also}
-
-\helpref{wx\_const\_cast}{wxconstcastraw},\\
 \helpref{wx\_reinterpret\_cast}{wxreinterpretcastraw},\\
 \helpref{wx\_static\_cast}{wxstaticcastraw}
 
@@ -3576,7 +3557,6 @@ Same as \texttt{reinterpret\_cast<T>(x)} if the compiler supports reinterpret ca
 \wxheading{See also}
 
 \helpref{wx\_const\_cast}{wxconstcastraw},\\
-\helpref{wx\_dynamic\_cast}{wxdynamiccastraw},\\
 \helpref{wx\_static\_cast}{wxstaticcastraw}
 
 
@@ -3593,7 +3573,6 @@ star is not appended to it.
 \wxheading{See also}
 
 \helpref{wx\_const\_cast}{wxconstcastraw},\\
-\helpref{wx\_dynamic\_cast}{wxdynamiccastraw},\\
 \helpref{wx\_reinterpret\_cast}{wxreinterpretcastraw}
 
 
index dc12e2af95d6c9e4f6ae1cf5cdb9524d85ba7553..49949f1b5fd5f3e22ace7e6e65f097909d29783f 100644 (file)
@@ -280,12 +280,6 @@ typedef int wxWindowID;
     #define wx_static_cast(t, x) ((t)(x))
 #endif
 
-#ifdef HAVE_DYNAMIC_CAST
-    #define wx_dynamic_cast(t, x) dynamic_cast<t>(x)
-#else
-    #define wx_dynamic_cast(t, x) ((t)(x))
-#endif
-
 #ifdef HAVE_CONST_CAST
     #define wx_const_cast(t, x) const_cast<t>(x)
 #else