This commit is contained in:
jzmaddock
2018-05-07 18:49:53 +01:00
parent d06ee12c5c
commit 1305001a58

View File

@ -206,9 +206,11 @@ private:
static bool cond();
BOOST_STATIC_CONSTANT(const int, selector = sizeof(select(cond() ? T() : U())));
public:
typedef typename arithmetic_type< sizeof(select( cond()? T(): U() )) >::type type;
typedef typename arithmetic_type<selector>::type type;
};
} // namespace type_traits_detail