diff --git a/include/boost/lambda/algorithm.hpp b/include/boost/lambda/algorithm.hpp index b0d7734..c11e5b2 100644 --- a/include/boost/lambda/algorithm.hpp +++ b/include/boost/lambda/algorithm.hpp @@ -20,7 +20,7 @@ #include #include // for iterator_traits -#include // for std::pair +#include // for std::pair namespace boost { namespace lambda { @@ -154,11 +154,11 @@ struct count { template struct sig { - typename ::std::iterator_traits< - typedef typename boost::remove_const< + typedef typename ::std::iterator_traits< + typename boost::remove_const< typename boost::tuples::element<1, Args>::type >::type - >::difference_type type + >::difference_type type; }; template @@ -173,11 +173,11 @@ struct count_if { template struct sig { - typename ::std::iterator_traits< - typedef typename boost::remove_const< + typedef typename ::std::iterator_traits< + typename boost::remove_const< typename boost::tuples::element<1, Args>::type >::type - >::difference_type type + >::difference_type type; }; template @@ -610,7 +610,7 @@ struct unique_copy { template C - operator()(A a, B b, C c, D c) const + operator()(A a, B b, C c, D d) const { return ::std::unique_copy(a, b, c, d); } }; @@ -678,7 +678,7 @@ struct rotate_copy { template C - operator()(A a, B b, C c, D c) const + operator()(A a, B b, C c, D d) const { return ::std::rotate_copy(a, b, c, d); } };