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