23 #ifndef __Contraints_hh__
24 #define __Contraints_hh__
37 template<
class T,
class B>
54 template<
class T1,
class T2>
71 template<
class T1,
class T2 = T1>
88 template<
class T1,
class T2,
class T3 = T1>
105 template<
class EditableType,
class ConstType>
110 const EditableType *c) {
111 c =
const_cast<ConstType *
>(a);
115 void(*p)(EditableType *, ConstType *,
const EditableType *) =
127 #endif // __Contraints_hh__
static void Constraints(T1 a, T2 b, T3 c)
compile time check if T1 can be multiplied by T2 Found it in Bjarne Stroustrup's FAQ: http://public...
compile time check if B is (grand)father of T Found it in Bjarne Stroustrup's FAQ: http://public...
compile time check for copy compatibilty between T1 and T2 Found it in Bjarne Stroustrup's FAQ: http:...
static void Constraints(T1 a, T2 b)
compile time check for comparabilty of T1 and T2 Found it in Bjarne Stroustrup's FAQ: http://public...
static void Constraints(T1 a, T2 b)
compile time check if the ConstType differs from EditableType merely by a const qualifier, i.e.
static void Constraints(EditableType *a, ConstType *b, const EditableType *c)