Skip to content

introduce gsl::swap for swapping gsl::not_null#1160

Merged
carsonRadtke merged 2 commits into
microsoft:mainfrom
carsonRadtke:gh-1129
Dec 13, 2024
Merged

introduce gsl::swap for swapping gsl::not_null#1160
carsonRadtke merged 2 commits into
microsoft:mainfrom
carsonRadtke:gh-1129

Conversation

@carsonRadtke

Copy link
Copy Markdown
Member

fixes: #1129

  • create gsl::swap(T&, T&) which wraps std::swap
  • specialize gsl::swap(gsl::not_null&, gsl::not_null&)
  • add tests

fixes: #1129

* create gsl::swap<T>(T&, T&) which wraps std::swap
* specialize gsl::swap<T>(gsl::not_null<T>&, gsl::not_null<T>&)
* add tests
@carsonRadtke carsonRadtke added Priority: Low Can be handled at leisure Type: Enhancement Suggests an improvement or new feature Status: Blocked Cannot proceed due to external factors labels Dec 2, 2024
@carsonRadtke carsonRadtke self-assigned this Dec 13, 2024
@carsonRadtke carsonRadtke added Status: In Progress Currently being worked on and removed Status: Blocked Cannot proceed due to external factors labels Dec 13, 2024
@carsonRadtke carsonRadtke merged commit 2724630 into microsoft:main Dec 13, 2024
@carsonRadtke carsonRadtke deleted the gh-1129 branch December 13, 2024 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority: Low Can be handled at leisure Status: In Progress Currently being worked on Type: Enhancement Suggests an improvement or new feature

Projects

Development

Successfully merging this pull request may close these issues.

Missing swap for gsl::not_null for move-only types

1 participant