2 // { dg-do compile { target c++11 } }
7 template< class T, class = void >
9 { constexpr static bool value = false; };
12 struct has_type<T, void_t<typename T::type>>
13 { constexpr static bool value = true; };
15 struct yes { using type = int; };
21 static_assert( has_type<yes>::value, "false negative!" );
22 static_assert( not has_type<no >::value, "false positive!" );