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.conv.ctor] Turn last paragraph into a note #6505

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Eisenwave
Copy link
Contributor

Paragraph 1 already states:

draft/source/classes.tex

Lines 2347 to 2353 in 1c22d62

\pnum
A constructor that is not explicit\iref{dcl.fct.spec}
specifies a conversion from
the types of its parameters (if any)
to the type of its class.
Such a constructor is called a
\defnadj{converting}{constructor}.

The reader has no reason to believe that a copy/move constructor is excluded from the rule, and it certainly doesn't need to be stated in normative wording. The whole paragraph can and should be a note.

Comment on lines 2408 to 2409
An implicitly-declared copy/move constructor is not an explicit constructor;
it can be called for implicit type conversions.
Copy link
Contributor

Choose a reason for hiding this comment

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

This is now pretty heavily redundant. How about

A non-explicit copy/move constructor ([class.copy.ctor]), including one implicitly declared, is a converting constructor.

Copy link
Contributor

Choose a reason for hiding this comment

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

That's nice, thanks!

Copy link
Contributor

Choose a reason for hiding this comment

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

@Eisenwave ^^^ could you please have a look?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah I'll go through all the things I have to do in this repo tomorrow.

@tkoeppe tkoeppe self-assigned this Nov 11, 2023
@jensmaurer
Copy link
Member

jensmaurer commented Nov 22, 2023

CWG 2023-11-11: Approved as-is.

@jensmaurer jensmaurer added the after-motions Pull request is to be applied after the pending edits from WG21 straw polls have been applied. label Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
after-motions Pull request is to be applied after the pending edits from WG21 straw polls have been applied.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants