[ create a new paste ] login | about

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

C++, pasted on Dec 3:
1
2
3
4
5
6
7
8
9
#include <iostream>

template<class T>
void ignore (const T &) {}

void f() {
   std::cout << std::endl;
   ignore(std::endl);
}


Output:
1
2
3
In function 'void f()':
Line 8: error: no matching function for call to 'ignore(<unresolved overloaded function type>)'
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: