removed wx_dynamic_cast(), it can't be implemented properly without real dynamic_cast<>

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32674 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-03-08 11:17:01 +00:00
parent ed6dd18ae8
commit 330be53493
2 changed files with 1 additions and 28 deletions

View 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}

View 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