[ create a new paste ] login | about

Link: http://codepad.org/eD3iktqb    [ raw code | output | fork ]

C++, pasted on Nov 9:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
template <typename T>
class SomeClass
{
    public:
        struct data {};
};
 
template <typename T>
void func()
{
    SomeClass<int>::data d1;
    SomeClass<T>::data d2;
}
 
int main()
{
 
}


Output:
1
2
3
In function 'void func()':
Line 12: error: expected `;' before 'd2'
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: