inline const type& the(const cl_number& x)
{
// check that sizeof(type)==sizeof(cl_number)
- typedef int assertion1 [1 - 2 * (sizeof(type) != sizeof(cl_number))];
+ int (*dummy1)(int assertion1 [1 - 2 * (sizeof(type) != sizeof(cl_number))]); (void)dummy1;
return *(const type *) &x;
}
// Conversions to subtypes without checking, macro version:
#define CL_DEFINE_CONVERTER(target_class) \
operator const target_class & () const \
{ \
- typedef int assert1 [2*(sizeof(target_class)==sizeof(*this))-1]; \
+ int (*dummy1)(int assert1 [2*(sizeof(target_class)==sizeof(*this))-1]); (void)dummy1; \
return * (const target_class *) (void*) this; \
}