Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Main Page
Related Pages
Topics
Namespaces
Data Structures
Files
File List
Globals
EXTERNAL_HEADERS
RSL
etc
config
src
DYNAMIC_CAST.cpp
Go to the documentation of this file.
1
// checking for dynamic_cast
2
3
25
#include "config.h"
26
#include "
nodbg.h
"
27
28
29
#ifndef _RWSTD_NO_HONOR_STD
30
# ifdef _RWSTD_NO_STD_TERMINATE
31
# include "
terminate.h
"
32
# endif
// _RWSTD_NO_STD_TERMINATE
33
#endif
// _RWSTD_NO_HONOR_STD
34
35
36
struct
A
37
{
38
virtual
~A
() { }
39
};
40
41
struct
B
:
A
{ };
42
struct
C
:
A
{ };
43
44
45
int
main
()
46
{
47
nodbg
();
48
49
B
b
;
50
51
A
*
a
= &
b
;
52
53
return
!(
dynamic_cast<
B
*
>
(
a
) && !
dynamic_cast<
C
*
>
(
a
));
54
}
a
#define a
Definition
17.names.cpp:109
b
#define b
Definition
17.names.cpp:110
main
int main()
Definition
DYNAMIC_CAST.cpp:45
A
Definition
NAMESPACE.cpp:25
B
Definition
NAMESPACE.cpp:31
C
Definition
NAMESPACE.cpp:39
nodbg.h
nodbg
void nodbg()
Definition
nodbg.h:52
A::~A
virtual ~A()
Definition
DYNAMIC_CAST.cpp:38
terminate.h
Generated by
1.9.8