Boost logo

Boost :

Subject: Re: [boost] [gil] compiler error with clang in c++11 mode
From: Christian Henning (chhenning_at_[hidden])
Date: 2013-02-03 15:03:48


> 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.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk