Ticket #7270: boost-gil-clang-c++11-narrowing.patch

File boost-gil-clang-c++11-narrowing.patch, 545 bytes (added by Jim Bosch, 10 years ago)

updated patch that avoids introducing a new problem

  • boost/gil/

    old new  
    5151
    5252
    5353template <typename UnsignedIntegralChannel>
    54 struct unsigned_integral_max_value : public mpl::integral_c<UnsignedIntegralChannel,-1> {};
     54struct unsigned_integral_max_value : public mpl::integral_c<UnsignedIntegralChannel,static_cast<UnsignedIntegralChannel>(-1)> {};
    5555
    5656template <>
    5757struct unsigned_integral_max_value<uint8_t> : public mpl::integral_c<uint32_t,0xFF> {};