11 #ifndef __MEAN_TRAIT_HEADER
12 #define __MEAN_TRAIT_HEADER
14 #include "../ustd/type_traits.hpp"
19 struct use_double_identifier {
23 static double check(
double);
25 enum {value = (
sizeof(check((t+t)/
double(2))) ==
sizeof(
double))};
30 struct use_double_identifier<double> {
48 #endif //__MEAN_TRAIT_HEADER
Definition: type_traits.hpp:31
Definition: mean_trait.hpp:37
ustd::conditional< detail::use_double_identifier< T >::value, double, T >::type type
Definition: mean_trait.hpp:44