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
STD_TYPE_INFO.cpp
Go to the documentation of this file.
1
// checking for class std::type_info
2
3
26
namespace
std
{
27
28
#if defined (__EDG__) || defined (__sgi) && !defined (__GNUG__)
29
// let edg (or its derivative) know about this fake type_info
30
# pragma define_type_info
31
#endif
// __EDG__
32
33
34
class
type_info
{ };
35
36
}
// namespace std
37
38
39
struct
B
{
virtual
~B
() { } };
40
struct
D
:
B
{ };
41
struct
E
:
B
{ };
42
43
44
int
main
(
int
argc,
char
*argv[])
45
{
46
const
std::type_info
* ti1 = 0;
47
const
std::type_info
* ti2 = 0;
48
49
if
(argc > 3) {
50
ti1 = &
typeid
(
D
);
51
ti2 = &
typeid
(
E
);
52
}
53
else
if
(argc > 2) {
54
ti1 = &
typeid
(
D
);
55
ti2 = &
typeid
(
D
);
56
}
57
58
if
(argc > 1)
59
return
ti1 == ti2;
60
61
// link only test
62
return
0;
63
}
E
#define E
Definition
17.names.cpp:148
D
#define D
Definition
17.names.cpp:147
main
#define main
Definition
BAD_ALLOC_COPY_CTOR.cpp:32
std::type_info
Definition
STD_TYPE_INFO.cpp:34
B
Definition
NAMESPACE.cpp:31
std
Definition
json.h:5363
B::~B
virtual ~B()
Definition
STD_TYPE_INFO.cpp:39
D
Definition
DEFAULT_TEMPLATE_ARGS.cpp:35
E
Definition
GLOBAL_TYPE_INFO.cpp:36
Generated by
1.9.8