annotate gcc/testsuite/g++.dg/warn/anonymous-namespace-4.h @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 template < typename T > struct integral_c {
kono
parents:
diff changeset
2 static const T value = 0;
kono
parents:
diff changeset
3 };
kono
parents:
diff changeset
4 struct is_reference:integral_c < bool > { };
kono
parents:
diff changeset
5 template < class > struct is_function_ptr_helper { };
kono
parents:
diff changeset
6 template < bool > struct is_function_chooser;
kono
parents:
diff changeset
7
kono
parents:
diff changeset
8 template <> struct is_function_chooser <0 >
kono
parents:
diff changeset
9 {
kono
parents:
diff changeset
10 template < typename T > struct result_:is_function_ptr_helper < T * > { };
kono
parents:
diff changeset
11 };
kono
parents:
diff changeset
12
kono
parents:
diff changeset
13 template < typename T > struct is_function_impl:is_function_chooser <
kono
parents:
diff changeset
14 is_reference::value >::result_ < T > { };