I can specify an integer literal of type unsigned long as follows:
const unsigned long example = 9UL;
How do I do likewise for an unsigned
You can cast the constant. For example:
min(static_cast(9), example2);
You can also use the constructor syntax:
typedef unsigned char uchar; min(uchar(9), example2);
The typedef isn't required on all compilers.