Go to the documentation of this file.Go to the SVN repository for this file.
1 #ifndef UTIL_MATH___PROMOTE__HPP
2 #define UTIL_MATH___PROMOTE__HPP
59 #define NCBI_PROMOTE_TRAITS(type) \
60 template<> struct SPromoteTraits< type, type > { \
62 typedef type TPromote; \
68 #define NCBI_PROMOTE2_TRAITS(type1,type2,type3) \
69 template<> struct SPromoteTraits< type1, type2 > { \
71 typedef type3 TPromote; \
73 template<> struct SPromoteTraits< type2, type1 > { \
75 typedef type3 TPromote; \
83 #if defined(NCBI_COMPILER_MSVC) && (_MSC_VER <= 1200)
84 # define NCBI_PROMOTE(a,b) SPromoteTraits< a, b >::TPromote
86 # define NCBI_PROMOTE(a,b) typename SPromoteTraits< a, b >::TPromote
Include a standard set of the NCBI C++ Toolkit most basic headers.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.