|
|
|
1 |
|
/*** |
2 |
|
*typeinfo.h - Defines the type_info structure and exceptions used for RTTI |
3 |
|
* |
4 |
|
* Copyright (c) Microsoft Corporation. All rights reserved. |
5 |
|
* |
6 |
|
*Purpose: |
7 |
|
* Defines the type_info structure and exceptions used for |
8 |
|
* Runtime Type Identification. |
9 |
|
* |
10 |
|
* [Public] |
11 |
|
* |
12 |
|
****/ |
13 |
|
|
14 |
|
#if _MSC_VER > 1000 |
15 |
|
#pragma once |
16 |
|
#endif |
17 |
|
|
18 |
|
#include <crtdefs.h> |
19 |
|
|
20 |
|
#ifndef _INC_TYPEINFO |
21 |
|
#define _INC_TYPEINFO |
22 |
|
|
23 |
|
#ifdef _MSC_VER |
24 |
|
#pragma pack(push,_CRT_PACKING) |
25 |
|
#endif /* _MSC_VER */ |
26 |
|
|
27 |
|
#ifndef RC_INVOKED |
28 |
|
|
29 |
|
#ifndef __cplusplus |
30 |
|
#error This header requires a C++ compiler ... |
31 |
|
#endif |
32 |
|
|
33 |
|
|
34 |
|
#include <typeinfo> |
35 |
|
|
36 |
|
|
37 |
|
#ifdef __RTTI_OLDNAMES |
38 |
|
/* Some synonyms for folks using older standard */ |
39 |
|
using std::bad_cast; |
40 |
|
using std::bad_typeid; |