libcopp  1.1.0
decltype.h
Go to the documentation of this file.
1 
14 #ifndef STD_DECLTYPE_H
15 #define STD_DECLTYPE_H
16 
17 
18 #pragma once
19 
21 
22 #if UTIL_CONFIG_COMPILER_CXX_DECLTYPE && UTIL_CONFIG_COMPILER_CXX_DECLTYPE
23 #define STD_DECLTYPE decltype
24 #endif
25 
26 #if !defined(STD_DECLTYPE)
27 #if defined(__COMO__) && defined(__GNUG__)
28 #define STD_DECLTYPE typeof
29 
30 #elif !defined(__COMO__) && defined(__GNUC__)
31 #define STD_DECLTYPE __typeof__
32 
33 #elif !defined(__COMO__) && defined(__MWERKS__) && __MWERKS__ > 0x3003
34 #define STD_DECLTYPE __typeof__
35 
36 #elif !defined(__COMO__) && defined(__SUNPRO_CC) && __SUNPRO_CC > 0x590
37 #define STD_DECLTYPE __typeof__
38 
39 #endif
40 
41 #endif
42 
43 #endif