language: C++ 4.7.2 (gcc-4.7.2)
date: 875 days 18 hours ago
link:
visibility: public
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <iostream>
 
using namespace std;
 
struct sample
{
        int member;
};
template<typename TArg, typename TBody>
void g(TArg & p)
{
        TBody v = p.member;
        return;
}
int main() {
        
        sample s = { 100 };
        g(s);
        return 0;
}
prog.cpp: In function ‘int main()’:
prog.cpp:18: error: no matching function for call to ‘g(sample&)’