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

Automating string reallocation when it is possible #2076

Merged
merged 4 commits into from Oct 25, 2023

Conversation

lemire
Copy link
Member

@lemire lemire commented Oct 25, 2023

We want the following to just work...

std::string json = "12345642314123421321321321321321312321321321321312";
json.shrink_to_fit();      
parser.iterate(json);

@lemire lemire requested a review from anonrig October 25, 2023 22:43
@lemire lemire merged commit 6db330c into master Oct 25, 2023
68 of 69 checks passed
@lemire lemire deleted the automated_string_realloc branch October 25, 2023 23:34
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.

None yet

1 participant