10 #ifndef _TEUCHOS_PROMOTION_TRAITS_HPP_
11 #define _TEUCHOS_PROMOTION_TRAITS_HPP_
17 template <
class A,
class B>
29 #define PT_SPEC(type1,type2,type3) \
30 template <> class PromotionTraits< type1 , type2 > { \
32 typedef type3 promote; \
34 template <> class PromotionTraits< type2 , type1 > { \
36 typedef type3 promote; \
39 #ifdef HAVE_TEUCHOS_COMPLEX
40 PT_SPEC(
double,std::complex<float>,std::complex<double>)
41 PT_SPEC(
float,std::complex<
double>,std::complex<
double>)
42 PT_SPEC(
float,std::complex<
float>,std::complex<
float>)
43 PT_SPEC(
double,std::complex<
double>,std::complex<
double>)
44 #endif // HAVE_TEUCHOS_COMPLEX
57 #endif // _TEUCHOS_PROMOTION_TRAITS_HPP_
Teuchos header file which uses auto-configuration information to include necessary C++ headers...