[ create a new paste ] login | about

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

Niels - C++, pasted on Jan 25:
1
2
3
4
5
6
7
#include <algorithm>

int main() {
  unsigned long big = 76543210UL;
  unsigned short small = 12345;
  unsigned short smallest = std::min(big, small);
}


Output:
1
2
3
In function 'int main()':
Line 6: error: no matching function for call to 'min(long unsigned int&, short unsigned int&)'
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: