Skip to content

Commit

Permalink
Fix for issue #14.
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-matera committed Dec 31, 2017
1 parent 84b135f commit b6c297e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/algorithm
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,16 @@ namespace std{
b = temp;
}

template<class ForwardIterator1, class ForwardIterator2> _UCXXEXPORT
void
iter_swap(ForwardIterator1 a, ForwardIterator2 b)
{
typename iterator_traits<ForwardIterator1>::value_type temp(*a);
*a = *b;
*b = temp;
}


template<class ForwardIterator1, class ForwardIterator2> _UCXXEXPORT
ForwardIterator2
swap_ranges(ForwardIterator1 first1, ForwardIterator1 last1, ForwardIterator2 first2)
Expand All @@ -396,16 +406,6 @@ namespace std{
}


template<class ForwardIterator1, class ForwardIterator2> _UCXXEXPORT
void
iter_swap(ForwardIterator1 a, ForwardIterator2 b)
{
typename iterator_traits<ForwardIterator1>::value_type temp(*a);
*a = *b;
*b = temp;
}


template<class InputIterator, class OutputIterator, class UnaryOperation> _UCXXEXPORT
OutputIterator
transform(InputIterator first, InputIterator last,
Expand Down

0 comments on commit b6c297e

Please sign in to comment.