OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR c++/44157
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
variadic94.C
1
// PR c++/40595
2
// { dg-options "-std=c++0x" }
3
4
template<int N>
5
struct S
6
{
7
typedef int type;
8
};
9
10
template<typename T>
11
struct Get
12
{
13
static T get();
14
};
15
16
template<typename F>
17
struct B
18
{
19
template<typename ... Args>
20
typename S<sizeof( Get<F>::get() (Get<Args>::get() ...) )>::type
21
f(Args&& ... a);
22
};
23
24
struct X
25
{
26
bool operator()(int) const;
27
};
28
29
int main()
30
{
31
B<X> b;
32
b.f(1);
33
}