Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (27 sloc) 1.31 KB
From 13f87e81352e0bd20e97689328a146c016a45d79 Mon Sep 17 00:00:00 2001
From: Christian Henning <chhenning@gmail.com>
Date: Wed, 6 Feb 2013 01:35:03 +0000
Subject: [libs/gil] #7920
[SVN r82755]
---
boost/gil/channel_algorithm.hpp | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/boost/gil/channel_algorithm.hpp b/boost/gil/channel_algorithm.hpp
index 8d45239..9b880fa 100644
--- a/boost/gil/channel_algorithm.hpp
+++ b/boost/gil/channel_algorithm.hpp
@@ -29,6 +29,7 @@
#include <boost/mpl/integral_c.hpp>
#include <boost/mpl/greater.hpp>
#include <boost/type_traits.hpp>
+#include <boost/integer_traits.hpp>
namespace boost { namespace gil {
@@ -51,8 +52,7 @@ template <typename SrcChannelV, typename DstChannelV, bool SrcLessThanDst, bool
template <typename UnsignedIntegralChannel>
-//struct unsigned_integral_max_value : public mpl::integral_c<UnsignedIntegralChannel,std::numeric_limits<UnsignedIntegralChannel>::max()> {};
-struct unsigned_integral_max_value : public mpl::integral_c<UnsignedIntegralChannel,UnsignedIntegralChannel(-1)> {};
+struct unsigned_integral_max_value : public mpl::integral_c<UnsignedIntegralChannel,integer_traits< UnsignedIntegralChannel>::const_max> {};
template <>
struct unsigned_integral_max_value<uint8_t> : public mpl::integral_c<uint32_t,0xFF> {};
--
2.14.3
You can’t perform that action at this time.