Hi there, shouldn't the following work: #include <boost\gil\gil_all.hpp> using namespace std; using namespace boost; int main() { typedef mpl::integral_c< unsigned char , numeric_limits< unsigned char >::max() > my_max_value_t; return 0; }