[boost][range] - Improved the work-around for VC10 for_each implementation. Corrected a missing newline at the end of the file.

[SVN r70850]
This commit is contained in:
Neil Groves
2011-04-02 10:14:51 +00:00
parent 10af4fc1e0
commit d490a84c8d

View File

@ -14,6 +14,7 @@
#include <boost/range/end.hpp>
#include <boost/range/concepts.hpp>
#include <boost/ref.hpp>
#include <boost/utility.hpp>
#include <algorithm>
#if BOOST_WORKAROUND(BOOST_MSVC, == 1600)
@ -54,7 +55,7 @@ namespace boost
void
>::type* = 0)
{
return std::for_each(first, last, fn);
return std::for_each<Iterator, UnaryFunction>(first, last, fn);
}
}
#endif
@ -106,4 +107,4 @@ inline UnaryFunction for_each(const SinglePassRange& rng, UnaryFunction fun)
using range::for_each;
} // namespace boost
#endif // include guard
#endif // include guard