Skip to content

Avoid memory error #651

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

Merged
merged 2 commits into from
Aug 27, 2017
Merged

Avoid memory error #651

merged 2 commits into from
Aug 27, 2017

Conversation

cdunn2001
Copy link
Contributor

But simply use .assign() instead of the extra copy. (See comment from @BillyDonhue at #580.)

See #578. Thanks @ya1gaurav and @cinemast.

(@SoapGentoo, thanks for the Meson stuff. Beautiful!)

ya1gaurav and others added 2 commits August 27, 2017 13:43
Fix issue reported in open-source-parsers#578
For std::string variable, length() is more readable than size().
But simply use `.assign()` instead of the extra copy. (See comment from
@BillyDonhue at open-source-parsers#580.)

fixes open-source-parsers#578
closes open-source-parsers#580
@cdunn2001 cdunn2001 merged commit c82abe5 into open-source-parsers:master Aug 27, 2017
@cdunn2001 cdunn2001 deleted the fix-578 branch August 27, 2017 19:14
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