Skip to content

Conversation

@agasparovic
Copy link
Contributor

In some cases, a few more copies could be prevented by changing function definitions to accept parameters by const-ref, rather than by value, but I didn't want to change public signatures.

In some cases, a few more copies could be prevented by changing function definitions to accept parameters by const-ref, rather than by value, but I didn't want to change public signatures.
@yhirose
Copy link
Owner

yhirose commented Oct 11, 2020

@agasparovic, thanks for the improvement. The code looks good to me though, somehow some unit tests failed. Could you take a look at them?

@agasparovic
Copy link
Contributor Author

Hi @yhirose, all fixed!

@yhirose yhirose merged commit fffbf1a into yhirose:master Oct 11, 2020
@yhirose
Copy link
Owner

yhirose commented Oct 11, 2020

@agasparovic, thanks for the contribution!

ExclusiveOrange pushed a commit to ExclusiveOrange/cpp-httplib-exor that referenced this pull request May 2, 2023
* Use move semantics instead of copy for functions

In some cases, a few more copies could be prevented by changing function definitions to accept parameters by const-ref, rather than by value, but I didn't want to change public signatures.

* Fix two use-after-move errors
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