2 // { dg-do compile { target c++11 } }
6 template<typename _Tp, _Tp __v>
7 struct integral_constant
9 static constexpr _Tp value = __v;
10 typedef integral_constant<_Tp, __v> type;
13 template<typename _Tp, _Tp __v>
14 constexpr _Tp integral_constant<_Tp, __v>::value;
16 typedef integral_constant<bool, true> true_type;
17 typedef integral_constant<bool, false> false_type;
20 using bool_constant = integral_constant<bool, __v>;
22 template<typename _Tp, typename... _Args>
23 struct is_constructible
24 : public bool_constant<__is_constructible(_Tp, _Args...)>
38 static_assert(!std::is_constructible<A<int> >::value, "");
39 static_assert(!std::is_constructible<B>::value, "");