Index: boost/accumulators/numeric/functional.hpp =================================================================== --- boost/accumulators/numeric/functional.hpp (revision 71367) +++ boost/accumulators/numeric/functional.hpp (working copy) @@ -10,6 +10,7 @@ #include #include +#include #include #include #include @@ -277,6 +278,8 @@ struct as_min_base : std::unary_function::type> { + BOOST_STATIC_ASSERT(std::numeric_limits::type>::is_specialized); + typename remove_const::type operator ()(Arg &) const { return (std::numeric_limits::type>::min)(); @@ -287,6 +290,8 @@ struct as_min_base >::type> : std::unary_function::type> { + BOOST_STATIC_ASSERT(std::numeric_limits::type>::is_specialized); + typename remove_const::type operator ()(Arg &) const { return -(std::numeric_limits::type>::max)(); @@ -297,6 +302,8 @@ struct as_max_base : std::unary_function::type> { + BOOST_STATIC_ASSERT(std::numeric_limits::type>::is_specialized); + typename remove_const::type operator ()(Arg &) const { return (std::numeric_limits::type>::max)();