|
Boost : |
Subject: [boost] [gil] compiler error with clang in c++11 mode
From: Christian Henning (chhenning_at_[hidden])
Date: 2013-02-02 12:17:26
Hi there,
Can someone shed some light on the following compiler errors:
c:\boost\boost\gil/channel_algorithm.hpp:54:85: error: non-type
template argument evaluates to -1, which cannot be narrowed to type
'unsigned long long' [-Wc++11-narrowing]
struct unsigned_integral_max_value : public
mpl::integral_c<UnsignedIntegralChannel,-1> {};
^
c:\boost\boost\gil/channel_algorithm.hpp:204:19: note: in
instantiation of template class
'boost::gil::detail::unsigned_integral_max_value<unsigned long long>'
requested here
if (src > unsigned_integral_max_value<uintmax_t>::value - div2)
I only get those in c++11 mode. The code to trigger them is:
#include <boost\gil\gil_all.hpp>
int main()
{
return 0;
}
I'm using clang 3.2 on Windows with CodeBlocks.
Thanks,
Christian
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk