New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modifying parallel search algorithm for zero length searches #1373
Conversation
@@ -66,7 +66,7 @@ namespace hpx {namespace parallel { HPX_INLINE_NAMESPACE(v1) | |||
|
|||
s_difference_type diff = std::distance(s_first, s_last); | |||
if (diff <= 0) | |||
return result::get(std::move(last)); | |||
return result::get(std::move(first)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this messed up the indentation. Please make sure that your editor is not inserting tabs into the files (see: https://github.com/STEllAR-GROUP/hpx/wiki/HPX-Source-Code-Structure for general coding guidelines).
Fixed my editor to use .editorconfig file. Indentation should be correct. |
Looks good to me. |
Modifying parallel search algorithm for zero length searches
Thanks! |
Changed search.hpp to return the first iterator if the search iterators are the same.