-
Notifications
You must be signed in to change notification settings - Fork 891
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
[REVIEW] Explicit dictionary constructor #5832
Merged
bdice
merged 5 commits into
rapidsai:branch-0.15
from
bdice:explicit-dictionary-constructor
Aug 3, 2020
Merged
[REVIEW] Explicit dictionary constructor #5832
bdice
merged 5 commits into
rapidsai:branch-0.15
from
bdice:explicit-dictionary-constructor
Aug 3, 2020
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…structed by duration's "common type" in multiplication operator.
Please update the changelog in order to start CI tests. View the gpuCI docs here. |
bdice
changed the title
Explicit dictionary constructor
[REVIEW] Explicit dictionary constructor
Aug 3, 2020
jrhemstad
approved these changes
Aug 3, 2020
Codecov Report
@@ Coverage Diff @@
## branch-0.15 #5832 +/- ##
===============================================
+ Coverage 84.08% 84.40% +0.32%
===============================================
Files 80 80
Lines 13061 13381 +320
===============================================
+ Hits 10982 11294 +312
- Misses 2079 2087 +8
Continue to review full report at Codecov.
|
8 tasks
davidwendt
approved these changes
Aug 3, 2020
bdice
added
5 - Ready to Merge
Testing and reviews complete, ready to merge
and removed
3 - Ready for Review
Ready for review by team
labels
Aug 3, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR makes the
dictionary32
constructor from anint32
explicit. An implicit constructor here defeats the purpose of being a strongly typed wrapper.This is a dependency of #5494.
The underlying issue this solves is similar to a change made in #5735, where timestamps could be constructed from a duration type's representation. Quoting from discussion with @jrhemstad:
In this case, the implicit constructor of a
dictionary32
from anint32
meant that it met the criteria for the overload ofoperator*
with a duration, which isn't desired.Aside from the change to the constructor, this only affected one place that relied on the implicit constructor.