Skip to content

[numarray] Remove incorrect comments for deleted default constructors#8962

Merged
jensmaurer merged 1 commit intocplusplus:mainfrom
frederick-vs-ja:numarray-delete-comments
Apr 21, 2026
Merged

[numarray] Remove incorrect comments for deleted default constructors#8962
jensmaurer merged 1 commit intocplusplus:mainfrom
frederick-vs-ja:numarray-delete-comments

Conversation

@frederick-vs-ja
Copy link
Copy Markdown
Contributor

Explicitly declaring a copy constructor doesn't make the default constructor deleted, but makes it not implicitly declared at all. So it's not quite correct to say "as implied by declaring copy constructor above" for these deleted default constructors.
Moreover, the difference between deleting and not having default constructor is observable, as shown in LWG3160.

@frederick-vs-ja
Copy link
Copy Markdown
Contributor Author

For archaeology: These comments were introduced in N2292, together with use of deleted functions in the standard library.

Copy link
Copy Markdown
Member

@jwakely jwakely left a comment

Choose a reason for hiding this comment

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

Maybe we should not delete those, and should just have no default ctors. But that would be a design change. Given that we do have deleted constructors, we should remove the incorrect comments on them.

@jensmaurer jensmaurer merged commit 0a236f9 into cplusplus:main Apr 21, 2026
2 checks passed
@frederick-vs-ja frederick-vs-ja deleted the numarray-delete-comments branch April 21, 2026 16:58
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.

3 participants