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

[inplace.vector.cons] "Constructs an object" is redundant #7252

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

CaseyCarter
Copy link
Contributor

@CaseyCarter CaseyCarter commented Sep 14, 2024

So we don't need this from_range_t constructor (and only this constructor) to tell us that the inplace_vector it constructs happens to be an object. I should also point out that this is inconsistent with the other constructors which simply say "constructs an inplace_vector with [properties]".

So we don't need this `from_range_t` constructor (and only this constructor) to tell us that the `inplace_vector` it constructs happens to be an object.
Copy link
Member

@jensmaurer jensmaurer left a comment

Choose a reason for hiding this comment

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

Frankly, I don't think we need the redundant statement that a constructor constructs (an object of) its type to start with, but this consistency fix is an initial step in right direction.

@jensmaurer jensmaurer merged commit 2b3e09e into cplusplus:main Oct 1, 2024
2 checks passed
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