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

Fix copy/move constructor for connect/disconnect opts with properties #445

Merged
merged 2 commits into from Jul 29, 2023

Conversation

ssams
Copy link
Contributor

@ssams ssams commented Jul 18, 2023

ensures pointers to the properties are updated properly in move and copy constructors, so the c struct pointers remain valid

similar to #426, but I've also added tests and only try to set the structure if properties were provided (similar to SSL and will opts)

ensures pointers to the properties are updated properly
in move and copy constructors, so the c struct pointers remain valid

Signed-off-by: Sebastian Sams <sebastian.sams@bestsolution.at>
Signed-off-by: Sebastian Sams <sebastian.sams@bestsolution.at>
@ssams ssams changed the title Fix copy/move constructor for connect opts with properties Fix copy/move constructor for connect/disconnect opts with properties Jul 18, 2023
@fpagliughi
Copy link
Contributor

fpagliughi commented Jul 29, 2023

Ha. Awesome. I just spotted this before heading out on holiday a few weeks ago, but didn't have time to fix it before I left. Now I'm back, and here is the fix, complete with unit tests!

Thank you.

@fpagliughi fpagliughi merged commit 95928b6 into eclipse:develop Jul 29, 2023
1 check passed
fpagliughi added a commit that referenced this pull request Nov 17, 2023
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.

None yet

2 participants