Skip to content
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

Switch from std::tie() to structured binding. #8117

Merged
merged 1 commit into from
Apr 30, 2021

Conversation

mythrocks
Copy link
Contributor

Addendum to #7866, to switch from using std::tie() to structured bindings, as prescribed for C++17.

This required workarounds for compiler restrictions on using aliases from structured bindings as captures in lambdas.

@mythrocks mythrocks requested a review from a team as a code owner April 29, 2021 21:17
@mythrocks mythrocks self-assigned this Apr 29, 2021
@github-actions github-actions bot added the libcudf Affects libcudf (C++/CUDA) code. label Apr 29, 2021
@mythrocks mythrocks added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Apr 29, 2021
@mythrocks
Copy link
Contributor Author

mythrocks commented Apr 29, 2021

This is in response to @vuule's advice in PR #7866.

At the time, I hadn't figured out how to get around the compiler restriction. We might have a slightly better handle on it now.

Copy link
Contributor

@codereport codereport left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥

@mythrocks
Copy link
Contributor Author

Rerun tests

@codecov
Copy link

codecov bot commented Apr 30, 2021

Codecov Report

Merging #8117 (84f40c8) into branch-0.20 (51336df) will increase coverage by 0.02%.
The diff coverage is 90.72%.

Impacted file tree graph

@@               Coverage Diff               @@
##           branch-0.20    #8117      +/-   ##
===============================================
+ Coverage        82.88%   82.91%   +0.02%     
===============================================
  Files              103      103              
  Lines            17668    17868     +200     
===============================================
+ Hits             14645    14816     +171     
- Misses            3023     3052      +29     
Impacted Files Coverage Δ
python/cudf/cudf/core/column/__init__.py 100.00% <ø> (ø)
python/cudf/cudf/core/indexing.py 96.55% <ø> (+0.25%) ⬆️
python/cudf/cudf/core/reshape.py 91.08% <ø> (-0.03%) ⬇️
python/cudf/cudf/core/scalar.py 88.17% <ø> (+0.43%) ⬆️
python/cudf/cudf/core/series.py 91.72% <ø> (ø)
python/cudf/cudf/core/tools/datetimes.py 80.42% <ø> (-4.11%) ⬇️
python/cudf/cudf/core/window/rolling.py 88.88% <ø> (+0.65%) ⬆️
python/cudf/cudf/io/orc.py 86.89% <ø> (ø)
python/cudf/cudf/utils/applyutils.py 100.00% <ø> (+1.25%) ⬆️
python/cudf/cudf/utils/cudautils.py 57.75% <ø> (ø)
... and 38 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 04d6e5a...84f40c8. Read the comment docs.

@cwharris
Copy link
Contributor

cwharris commented Apr 30, 2021

Glad we can work around the structured binding lambda capture limitations by naming captures explicitly! 😌

@mythrocks
Copy link
Contributor Author

@gpucibot merge

@rapids-bot rapids-bot bot merged commit e6f3f37 into rapidsai:branch-0.20 Apr 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improvement / enhancement to an existing function libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants