-
Notifications
You must be signed in to change notification settings - Fork 67
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
Update class.cpp to make code compatible with MSVC #299
Conversation
Update class.cpp to make code compatible with MSVC
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.
Hm... @andriish i do not think this code is doing what you intended (see https://en.cppreference.com/w/cpp/string/basic_string/rfind). Please instead call begins_with
from https://github.com/RosettaCommons/binder/blob/master/source/util.cpp#L88C6-L88C17
Thanks,
Hi @lyskov,
I havent seen your Andrii |
-- oh, i see, so the
-- could you please elaborate? Ie do you expect |
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.
LGTM, - thank you @andriish !
@andriish could it be that you are referring to the old study that claims that for natural languages it yield better performance to always search from the end of the strings and not beginning (ie there is less number of strings that ends the same compare to number of strings that have begin with same sequence)? |
-- The interpreter is https://root.cern/ |
Update class.cpp to make code compatible with MSVC.
Should solve #298