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

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

carsonRadtke
Copy link
Collaborator

fixes: #1129

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

fixes: microsoft#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
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.

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