3 template<bool, typename T = void> struct enable_if { typedef T type; };
4 template<typename T> struct enable_if<false, T> { };
6 template<typename Tp, typename Arg1, typename Arg2>
7 class mini_is_constructible
10 typedef struct { char arr[2]; } two;
12 template<typename Tp1, typename Arg1_, typename Arg2_>
14 enable_if<(sizeof(Tp1(Arg1_(), Arg2_()), 1) > 0), one>::type
17 template<typename, typename, typename>
21 static const bool value = sizeof(test<Tp, Arg1, Arg2>(0)) == 1;
26 int Test[mini_is_constructible<int, A, A>::value ? -1 : 1];