[ create a new paste ] login | about

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

C++, pasted on Feb 7:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
template <class S, class EXTRA0, class T, class EXTRA1>
class Foo
{
  void bar();
};

template <class S, class T>
void Foo<S, T>::bar()
{ /* Generic stuff */ }

struct SomeType {};

template <>
void Foo<SomeType, SomeType>::bar()
{ /* Some special function */ }


Output:
1
2
Line 8: error: wrong number of template arguments (2, should be 4)
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: