11 #ifndef __HAS_SERIALIZE_HEADER
12 #define __HAS_SERIALIZE_HEADER
16 template<
typename T,
bool is_a_
class>
22 template<
void(T::*)(archive_proto_type &)>
struct helper {
typedef char type;};
24 template<
typename U>
static char check(
typename helper<&U::template serialize<archive_proto_type>>::type);
25 template<
typename U>
static double check(...);
27 enum {
value = (
sizeof(char) ==
sizeof(check<T>(0))) };
38 #endif //__HAS_SERIALIZE_HEADER
Definition: has_serialize.hpp:27
Definition: has_serialize.hpp:18
static archive_enum const type
Definition: has_serialize.hpp:19
archive_enum
Definition: archive_enum.hpp:14
Definition: has_serialize.hpp:17
char type
Definition: has_serialize.hpp:22
static char check(typename helper<&U::template serialize< archive_proto_type >>::type)
Definition: has_serialize.hpp:35
Definition: has_serialize.hpp:34
Definition: has_serialize.hpp:22