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

src/Print.cpp: simplify std::string print. #2

Merged
merged 1 commit into from
Dec 28, 2021

Conversation

tomicooler
Copy link
Contributor

Hi!

First of all, thank you for the library. I simplified the print(std::string) method, one less copy.

No need for a copy, the n+1 also added a +1 random (or zero initialized) byte.
@akshayabali akshayabali merged commit 2b799f5 into akshayabali:master Dec 28, 2021
@akshayabali
Copy link
Owner

Good eye @tomicooler !!

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

2 participants