-
Notifications
You must be signed in to change notification settings - Fork 563
fix WSclient_t initialization in server #581
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
Conversation
If the N |
Basically, comes down to this. Note that Object obj; vs. Object obj = Object(); Which is exactly the issue the default values in the class body always help to avoid (and I really like that option tbh). And not to mention different ctors, which need to manually call the default one. Just to repeat myself - explicit dtor + ctor through placement new could be replaced with either copy-assignment or move-assignment, depending on what we want with the resulting objects. |
Small code example re. "And not to mention different ctors, which need to manually call the default one." |
edited2 Well OK, thanks!
|
@mcspr Do you agree with the last commit ? (I wouldn't mind if you came with your own PR/solution - the |
(ref. gitter + 9d9f892) init() alternative is also doing it like https://godbolt.org/z/zaTjvT |
@Links2004 This PR is ready for reviewing, sorry for the noise ;) |
no worry, the git commends are for discussing. |
Reference: discussion with @mcspr
(opened to discussion or any other solution)