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

feat(common): add Options::set<>() && overload #12424

Merged
merged 3 commits into from
Aug 21, 2023

Conversation

coryan
Copy link
Contributor

@coryan coryan commented Aug 19, 2023

In our examples and documentation we use expressions like Options{}.set<A>(a).set<B>(b) and then pass the result by value. To get a move constructor out of such expressions the set<> functions must have a && overload.


This change is Reviewable

In our examples and documentation we use expressions like
`Options{}.set<A>(a).set<B>(b)` and then pass the result by value.
To get a move constructor out of such expressions the `set<>` functions
must have a `&&` overload.
@coryan coryan temporarily deployed to internal August 19, 2023 22:30 — with GitHub Actions Inactive
@codecov
Copy link

codecov bot commented Aug 20, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.01% ⚠️

Comparison is base (eef7b7c) 93.63% compared to head (701bcb6) 93.62%.
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #12424      +/-   ##
==========================================
- Coverage   93.63%   93.62%   -0.01%     
==========================================
  Files        2035     2035              
  Lines      180250   180220      -30     
==========================================
- Hits       168778   168734      -44     
- Misses      11472    11486      +14     
Files Changed Coverage Δ
google/cloud/options.h 98.38% <100.00%> (+0.20%) ⬆️
google/cloud/options_benchmark.cc 100.00% <100.00%> (ø)
google/cloud/options_test.cc 100.00% <100.00%> (ø)

... and 38 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@coryan coryan temporarily deployed to internal August 20, 2023 16:32 — with GitHub Actions Inactive
@coryan coryan temporarily deployed to internal August 20, 2023 16:38 — with GitHub Actions Inactive
@coryan coryan marked this pull request as ready for review August 21, 2023 12:59
@coryan coryan requested a review from a team as a code owner August 21, 2023 12:59
@coryan coryan merged commit b01c518 into googleapis:main Aug 21, 2023
52 checks passed
@coryan coryan deleted the feat-options-set-ref-ref-overloads branch August 21, 2023 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants