1 // { dg-do compile { target c++11 } }
2 template<typename... Args>
4 static const int value = 0;
7 template<typename T, template<class T> class... Metafunctions>
8 struct tuple<Metafunctions<T>...> {
9 static const int value = 1;
12 template<typename T> struct add_pointer;
13 template<typename T> struct add_reference;
15 int a0[tuple<int, float>::value == 0? 1 : -1];
16 int a1[tuple<add_pointer<int>, add_pointer<float> >::value == 0? 1 : -1];
17 int a2[tuple<>::value == 0? 1 : -1];
18 int a3[tuple<add_pointer<int> >::value == 1? 1 : -1];
19 int a4[tuple<add_pointer<int>, add_reference<int> >::value == 1? 1 : -1];