1 // { dg-do compile { target c++11 } }
5 static constexpr bool value = false;
8 template <typename R, typename ...Args>
9 struct is_function<R(Args...)>
11 static constexpr bool value = true;
14 template<bool, typename> struct enable_if {};
16 template<typename T> struct enable_if<true, T>
28 struct remove_pointer<T*>
40 typename enable_if<is_function<
41 typename remove_pointer<U>::type>::value,
42 bool>::type = false> X(U&&) {}
46 X<void(*)(int)> x0(f);