-
Notifications
You must be signed in to change notification settings - Fork 40
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
bring efel to c++17 standard #327
Conversation
efel/cppcore/LibV1.cpp
Outdated
GErrorStr += "Could not find the decay.\n"; | ||
return -1; | ||
} | ||
i_start++; |
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.
why the indentation here?
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 I got confused with 4spaces vs 2 spaces indentation. Let me take it back
efel/cppcore/LibV1.cpp
Outdated
v.begin(), find_if(v.begin() + indices[i], v.begin() + indices[i + 1], | ||
bind2nd(greater_equal<double>(), threshold))); | ||
auto onset_index = std::distance( | ||
v.begin(), std::find_if(v.begin() + indices[i], v.begin() + indices[i + 1], |
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.
why use std:: here? You did not use it for the other changes
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.
Done in the next commit. The usage is now consistent within LibV1
efel/cppcore/LibV5.cpp
Outdated
std::bind2nd(std::less_equal<double>(), minimum_voltage))); | ||
// get start index | ||
const size_t decayStartIdx = | ||
std::distance(voltage.begin(), |
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.
there are some more std::distance here
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.
The previous commit was for LibV1, the next ones repeat it for LibV5 for std::distance and std::find_if.
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.
Great job!
Changes: