Skip to content

Commit

Permalink
πŸ›  Handle else-case properly.
Browse files Browse the repository at this point in the history
β€” πŸ’¬ "We need to test on more compiler configs..."
  • Loading branch information
ThePhD committed Aug 23, 2021
1 parent ec2d8a4 commit cec3cb0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/ztd/ranges/algorithm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ namespace ztd { namespace ranges {
::std::move(__first0), ::std::move(__last0), ::std::move(__first1), ::std::move(__last1));
}
else
#else
#endif
{
for (; (__first0 != __last0) && (__first1 != __last1); ++__first0, (void)++__first1) {
if (*__first0 < *__first1)
Expand All @@ -359,7 +359,6 @@ namespace ztd { namespace ranges {
}
return (__first0 == __last0) && (__first1 != __last1);
}
#endif
#endif
}

Expand Down

0 comments on commit cec3cb0

Please sign in to comment.