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

Improve API design #128

Merged
merged 3 commits into from
Jul 11, 2024
Merged

Improve API design #128

merged 3 commits into from
Jul 11, 2024

Conversation

mingxwa
Copy link
Collaborator

@mingxwa mingxwa commented Jul 11, 2024

Changes

  • Moved function swap back to the definition of proxy, since overloading the global swap is no longer recommended after C++20.
  • Added friend function bool operator== similar with std::move_only_function.
  • Added a unit test case to cover the change.

@mingxwa mingxwa self-assigned this Jul 11, 2024
proxy.h Show resolved Hide resolved
@tian-lt
Copy link
Collaborator

tian-lt commented Jul 11, 2024

Add operator bool to align with std::move_only_function::operator bool?

@mingxwa
Copy link
Collaborator Author

mingxwa commented Jul 11, 2024

Add operator bool to align with std::move_only_function::operator bool?

Make sense. Added.

@mingxwa mingxwa merged commit 0ad48da into microsoft:main Jul 11, 2024
4 checks passed
@mingxwa mingxwa deleted the user/mingxwa/friends branch July 11, 2024 12: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