11 #ifndef __HAS_I2C_READ_WRITE_HEADER
12 #define __HAS_I2C_READ_WRITE_HEADER
16 template<
typename T,
bool is_a_
class>
19 template<
void(T::*)(
int)>
struct helper {
typedef char type;};
22 template<
typename U>
static double check(...);
24 enum {
value = (
sizeof(char) ==
sizeof(check<T>(0))) };
35 template<
typename T,
bool is_a_
class>
38 template<
void(T::*)()>
struct helper {
typedef char type;};
41 template<
typename U>
static double check(...);
43 enum {
value = (
sizeof(char) ==
sizeof(check<T>(0))) };
55 #endif //__HAS_I2C_READ_WRITE_HEADER
Definition: has_i2c_read_write.hpp:19
Definition: has_i2c_read_write.hpp:51
static char check(typename helper<&U::i2c_write >::type)
Definition: has_i2c_read_write.hpp:50
Definition: has_i2c_read_write.hpp:32
char type
Definition: has_i2c_read_write.hpp:19
Definition: has_i2c_read_write.hpp:43
static char check(typename helper<&U::i2c_read >::type)
Definition: has_i2c_read_write.hpp:17
Definition: has_i2c_read_write.hpp:36
char type
Definition: has_i2c_read_write.hpp:38
Definition: has_i2c_read_write.hpp:38
Definition: has_i2c_read_write.hpp:31
Definition: has_i2c_read_write.hpp:24