I got some problem on template.This code passed under vc6 but failed under g++. Is there anybody could tell me the reason? thanks.
#include u
instead of writing std::cout, u may use the namespace std, and create your function min in another namespace, say abc... so now when u call your function min, just write abc::min.. this should solve your problem.