forked from boostorg/range
Update transform.hpp
This commit is contained in:
1 parent
9e5144bab9
commit
e3f605a02f
1 file changed
+1
-2
@@ -58,9 +58,8 @@ namespace boost
|
||||
OutputIterator out,
|
||||
BinaryFunction fn)
|
||||
{
|
||||
for (; first1 != last1; ++first1, ++first2)
|
||||
for (; first1 != last1 && first2 != last2; ++first1, ++first2)
|
||||
{
|
||||
BOOST_ASSERT( first2 != last2 );
|
||||
*out = fn(*first1, *first2);
|
||||
++out;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user