[ create a new paste ] login | about

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

C++, pasted on May 8:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <iostream>
using namespace std;

template< typename T >
T max( T a, T b )
{
  return a < b ? b : a;
}

namespace my
{
	int max(){return 256;}
}

int main()
{
	cout<<my::max()<<endl;
	return 0;
}


Output:
1
256


Create a new paste based on this one


Comments: