diff --git a/include/boost/algorithm/is_clamped.hpp b/include/boost/algorithm/is_clamped.hpp index 0d541f8..8619564 100644 --- a/include/boost/algorithm/is_clamped.hpp +++ b/include/boost/algorithm/is_clamped.hpp @@ -17,7 +17,7 @@ #include // For std::less #include -#include // for identity +#include // for boost::type_identity namespace boost { namespace algorithm { @@ -38,8 +38,8 @@ namespace boost { namespace algorithm { /// template BOOST_CXX14_CONSTEXPR bool is_clamped( - T const& val, typename boost::mpl::identity::type const& lo, - typename boost::mpl::identity::type const& hi, Pred p) { + T const& val, typename boost::type_identity::type const& lo, + typename boost::type_identity::type const& hi, Pred p) { // assert ( !p ( hi, lo )); // Can't assert p ( lo, hi ) b/c they // might be equal return p(val, lo) ? false : p(hi, val) ? false : true; @@ -48,7 +48,7 @@ namespace boost { namespace algorithm { /// \fn is_clamped ( T const& val, /// typename boost::mpl::identity::type const & lo, /// typename boost::mpl::identity::type const & hi) -/// \returns true if value val is in the range [ lo, hi ] +/// \returns true if value "val" is in the range [ lo, hi ] /// using operator < for comparison. /// If the value is less than lo, return false. /// If the value is greater than hi, return false. @@ -60,9 +60,9 @@ namespace boost { namespace algorithm { /// template - BOOST_CXX14_CONSTEXPR bool is_clamped ( const T& val, - typename boost::mpl::identity::type const & lo, - typename boost::mpl::identity::type const & hi ) + BOOST_CXX14_CONSTEXPR bool is_clamped ( const T& val, + typename boost::type_identity::type const & lo, + typename boost::type_identity::type const & hi ) { return boost::algorithm::is_clamped ( val, lo, hi, std::less()); }