
Alternately, you could change c:\boost\boost\gil/channel_algorithm.hpp, line 54 from: struct unsigned_integral_max_value : public mpl::integral_c<UnsignedIntegralChannel,-1> {}; to: struct unsigned_integral_max_value : public mpl::integral_c<UnsignedIntegralChannel,UnsignedIntegralChannel(-1)> {}; or, even better, to: struct unsigned_integral_max_value : public mpl::integral_c<UnsignedIntegralChannel,std::numeric_limits<UnsignedIntegralChannel>::max()> {};
Either of those should solve your problem, I think (depending on your standard library)
-- Marshall
P.S. Please open a ticket at svn.boost.org so we can be sure to fix this in a future release.
See ticket: https://svn.boost.org/trac/boost/ticket/7970 I fixed it in the trunk.