forked from boostorg/range
[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:
@ -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
|
||||
|
Reference in New Issue
Block a user