diff options
Diffstat (limited to 'boost/range/algorithm/for_each.hpp')
-rw-r--r-- | boost/range/algorithm/for_each.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/boost/range/algorithm/for_each.hpp b/boost/range/algorithm/for_each.hpp index 4f5108d641..ea731b2fdd 100644 --- a/boost/range/algorithm/for_each.hpp +++ b/boost/range/algorithm/for_each.hpp @@ -13,6 +13,7 @@ #include <boost/range/begin.hpp> #include <boost/range/end.hpp> #include <boost/range/concepts.hpp> +#include <boost/utility/enable_if.hpp> #include <boost/ref.hpp> #include <algorithm> @@ -31,7 +32,7 @@ namespace boost template<typename Iterator, typename UnaryFunction> inline UnaryFunction for_each_impl(Iterator first, Iterator last, UnaryFunction fun, - typename enable_if< + typename ::boost::enable_if< is_reference_wrapper<UnaryFunction>, void >::type* = 0) |