From 9f4bc93ad6b88a9b0c4653369746ac8fc6abbdfd Mon Sep 17 00:00:00 2001 From: Mateusz Loskot Date: Sat, 12 May 2018 13:24:03 +0200 Subject: [PATCH] Replace boost::integer_traits with std::numeric_limits std::numeric_limits::max() is constexpr since C++11 --- include/boost/gil/channel_algorithm.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/boost/gil/channel_algorithm.hpp b/include/boost/gil/channel_algorithm.hpp index 9fb76693c..706bf210f 100644 --- a/include/boost/gil/channel_algorithm.hpp +++ b/include/boost/gil/channel_algorithm.hpp @@ -24,7 +24,6 @@ //////////////////////////////////////////////////////////////////////////////////////// #include -#include #include #include #include @@ -34,6 +33,8 @@ #include "channel.hpp" #include "typedefs.hpp" +#include + namespace boost { namespace gil { //#ifdef _MSC_VER @@ -55,7 +56,7 @@ template -struct unsigned_integral_max_value : public mpl::integral_c::const_max> {}; +struct unsigned_integral_max_value : public mpl::integral_c::max()> {}; template <> struct unsigned_integral_max_value : public mpl::integral_c {};