1 #include "cetlib_except/demangle.h" 13 :
public std::integral_constant<bool,
14 tt::is_int<T>::value ==
15 tt_old::is_int<T>::value> {};
19 :
public std::integral_constant<bool,
20 tt::is_uint<T>::value ==
21 tt_old::is_uint<T>::value> {};
25 :
public std::integral_constant<bool,
26 tt::is_numeric<T>::value ==
27 tt_old::is_numeric<T>::value> {};
35 cet::demangle_symbol(
typeid(
T).
name()) +
".";
45 if (
int(x) ==
int(y)) {
63 "compare is_numeric");
69 "compare is_numeric");
75 "compare is_numeric");
80 assert_cmp<unsigned char const>(
89 "compare is_numeric");
95 "compare is_numeric");
100 assert_cmp<unsigned short const>(
108 "compare is_numeric");
114 "compare is_numeric");
120 "compare is_numeric");
127 "compare is_numeric");
133 "compare is_numeric");
138 assert_cmp<unsigned long const>(
155 assert_cmp<unsigned long long const>(
157 assert_cmp<unsigned long long const>(
159 assert_cmp<unsigned long long const>(
184 "compare is_numeric");
193 "compare is_numeric");
198 "compare is_numeric");
204 "compare is_numeric");
207 std::cerr <<
msg <<
"\n";
std::is_unsigned< T > is_uint
std::is_arithmetic< T > is_numeric
void msg(const char *fmt,...)
void assert_cmp(bool exp, std::string const op)