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

[class.default.ctor]/4 /5 Constructors do not create objects #4019

Closed
languagelawyer opened this issue May 31, 2020 · 2 comments · Fixed by #4026
Closed

[class.default.ctor]/4 /5 Constructors do not create objects #4019

languagelawyer opened this issue May 31, 2020 · 2 comments · Fixed by #4026
Assignees

Comments

@languagelawyer
Copy link
Contributor

/4: A default constructor that is defaulted and not defined as deleted is implicitly defined when it is odr-used ([basic.def.odr]) to create an object of its class type

/5: Default constructors are called implicitly to create class objects of static, thread, or automatic storage duration ([basic.stc.static], [basic.stc.thread], [basic.stc.auto]) defined without an initializer ([dcl.init]), are called to create class objects of dynamic storage duration

@languagelawyer languagelawyer changed the title [class.default.ctor]/4 /5 Constructor do not create objects [class.default.ctor]/4 /5 Constructors do not create objects Jun 5, 2020
@jensmaurer
Copy link
Member

Any suggestion for improvement?

@languagelawyer
Copy link
Contributor Author

Maybe just s/create/initialize/?

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 a pull request may close this issue.

2 participants