Skip to content

Rewrite C++ API#67

Open
mjp41 wants to merge 4 commits into
microsoft:mainfrom
mjp41:refactor_cxx_api
Open

Rewrite C++ API#67
mjp41 wants to merge 4 commits into
microsoft:mainfrom
mjp41:refactor_cxx_api

Conversation

@mjp41

@mjp41 mjp41 commented May 7, 2025

Copy link
Copy Markdown
Member

Use the final parameter to when as the closure to call. This simplifies various parts of the C++ API, and have a, hopefully, easier to follow code structure.

Use the final parameter to `when` as the closure to call.  This simplifies various parts of the C++ API, and have a, hopefully, easier to follow code structure.
@mjp41

mjp41 commented May 7, 2025

Copy link
Copy Markdown
Member Author

I'd recommend reading when.h not as a diff, but just as is. The changes are too much for a diff to make sense.

mjp41 added 3 commits May 7, 2025 09:58
The staging of the move was occuring too early and making the cown null.  I guess there was a subtle UB here.

@marioskogias marioskogias left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Everything is so much cleaner now!

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