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
[oneDPL][RNG] Changing type of internal parameter of discard_block_engine #651
Conversation
The failures in testing not related to PR: |
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.
You can make PR name shorter and move a note about ABI changes to description
@@ -205,7 +205,7 @@ class discard_block_engine | |||
} | |||
|
|||
_Engine engine_; | |||
int n_ = 0; | |||
size_t n_ = 0; |
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.
It should be ::std::size_t
(actually, in every place of use) and it has missing include (e.g. cstddef
). I am wondering how tests are passed. Seems like you don't include API headers first (before standard headers) or have some kind of umbrella header. Anyway, this header (and, probably, others) is not self-contained.
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.
"std" namespace for size_t and missing includes are added
522fb4e
We have two failed steps: I suppose it's because the specified c++ version of the std compiler flag wasn't changed after this commit: |
Changing type of internal parameter from int to size_t.
Note: changes break ABI backward compatibility.