The STL provides a min(unsigned, unsigned) implimentation by default, but not a min(unsigned long, unsigned) one.