summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/variadic134.C
blob: b7ec40c0468e4dbee7f1d49cbfdb9952506b38a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// PR c++/53862
// { dg-options "-std=c++0x" }

typedef unsigned long size_t;

template<typename> struct is_scalar { static const bool value = true; };
template<bool, typename T> struct enable_if { typedef T type; };

template <size_t N, typename... Args>
void f(Args...) {}

template <size_t N, typename T, typename... Args>
typename enable_if<is_scalar<T>::value, void>::type f(T, Args...) {}

int main() {
    f<1>(1);
}