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

fix vector.resize for types without copy constructor #239

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

pablohoch
Copy link
Contributor

Currently, vector<T>.resize(size) and vector<T>(size) require T to have a copy constructor, making these functions impossible to use with types such as std::unique_ptr.

This PR splits resize and the constructor with a size argument into two functions to fix this issue.

@felixguendling felixguendling merged commit 6362f3a into felixguendling:master Nov 21, 2024
10 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.

2 participants