29 #ifndef DINAMICA_PROMOTIONTRAIT_H_ 30 #define DINAMICA_PROMOTIONTRAIT_H_ 46 #define ADD_PROMOTION(A,B,C) \ 47 template<> class PromotionTrait<A,B> { public: typedef C returnType; }; \ 48 template<> class PromotionTrait<B,A> { public: typedef C returnType; }; 52 #define ADD_PROMOTION_ALL(A,C) \ 53 template<typename T> class PromotionTrait<A,T> { public: typedef C returnType; }; \ 54 template<typename T> class PromotionTrait<T,A> { public: typedef C returnType; }; \ 55 template<> class PromotionTrait<A,A> { public: typedef C returnType; }; 61 #undef ADD_PROMOTION_ALL
Definition: AlgebraicMatrix.cpp:39