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

bitset: Fix deprecated-copy warning #144

Merged
merged 1 commit into from
Apr 28, 2020
Merged

Conversation

stotko
Copy link
Owner

@stotko stotko commented Apr 28, 2020

Recent compilers such as GCC 10 and Clang 10 emit a stricter set of warnings. Fix the newly appearing -Wdeprecated-copy warning by explicitly defining a copy constructor. Since ROCm's HCC compiler seems to have problems with the C++11 default version, we fallback to old C++98 style copy constructors.

@stotko stotko added the bug label Apr 28, 2020
@stotko stotko added this to the 1.3.0 milestone Apr 28, 2020
@codecov
Copy link

codecov bot commented Apr 28, 2020

Codecov Report

Merging #144 into master will decrease coverage by 0.05%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #144      +/-   ##
==========================================
- Coverage   97.64%   97.59%   -0.06%     
==========================================
  Files          28       28              
  Lines        1698     1703       +5     
==========================================
+ Hits         1658     1662       +4     
- Misses         40       41       +1     
Impacted Files Coverage Δ
src/stdgpu/bitset.cuh 100.00% <ø> (ø)
src/stdgpu/mutex.cuh 100.00% <ø> (ø)
src/stdgpu/impl/bitset_detail.cuh 100.00% <100.00%> (ø)
src/stdgpu/impl/mutex_detail.cuh 100.00% <100.00%> (ø)
src/stdgpu/impl/unordered_base_detail.cuh 96.25% <0.00%> (-0.25%) ⬇️

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 42a2399...dfbf670. Read the comment docs.

@stotko stotko merged commit 89f962c into master Apr 28, 2020
@stotko stotko deleted the warning_deprecrated_copy branch April 28, 2020 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant